いつものAPIキーで、リポジトリへ。
OpenRouterのキーとモデルIDを、Senteへ。既存のアカウントを使いながら、ローカルでファイルを読む・修正する作業を始めるための接続コマンドです。
teai登録不要の専用接続コマンド。
te openrouter connectで設定し、runで依頼します。推論費用や利用条件は接続先に従います。接続して、最初の作業を渡す
Python 3とSente本体が必要です。既存利用者はte update。新規インストールは次のコマンドでteaiキー入力をスキップできます。macOS / Linuxのシェル向けです。
curl -fsSL https://teai.io/te | sh -s -- --gateway
OpenRouterのAPIキーを環境変数に設定します。モデル名はOpenRouterのカタログにあるprovider/model形式をそのまま指定します。以下は小さな確認に使ったモデルです。
export OPENROUTER_API_KEY="$(python3 -c 'import getpass; print(getpass.getpass("OpenRouter key: "))')"
te openrouter connect --model openai/gpt-4o-mini --context 32768 --output 4096
te openrouter run "READMEを読み、最初に実行すべきテストを教えて"
接続先はhttps://openrouter.ai/api/v1。~で始まるエイリアスを含むモデルIDに対応しました。一覧に載っていることは、そのキーの残高・権限やモデルのツール対応を保証しません。モデル選択後、実際の依頼で確認してください。
対話画面はte openrouter tui。まずは読み取りの依頼から始め、修正を頼むときは「対象・期待する動作・テスト手順」を添えると、結果を確認しやすくなります。
何を確認したか
今回確認したのは接続設定と1回の実生成です。OpenRouter経由のSente全ツールループ、コード修正、失敗時の切り替えは未検証。記載した費用はこの短い試験1回のusage.costで、一般的な作業料金ではありません。
接続先ごとに、設定を分ける
te openrouter status # 接続先・選択モデルを確認
te openrouter config # キーを含まない設定JSON
te openrouter --help
プロファイルは~/.config/teai/openrouter/connection.jsonへ保存します。APIキーは保存せず、必要な場合に環境変数から読みます。モデル変更時はconnectを再実行してください。
専用のグローバル設定で起動するため、通常のteのモデル設定は変更しません。個人用の外部プラグインは読み込まず、プロジェクトの指示・設定は有効です。モデルの推論先を指定する機能で、MCPやコマンドの外部通信を制限する機能ではありません。
このクライアントの独自モデル表示額は、請求額の根拠にはできません。料金・使用量は接続先で確認してください。モデル一覧から全モデルのツール対応や上限を自動判定せず、選択したモデルだけを実行設定に登録します。
次に試すなら
READMEを読み、テスト実行に必要なコマンドを教えて。
まだファイルは変更しないで。一件ずつ、実行結果を見ながら。接続先の選択と、仕事の完了をつなぐための小さな入口です。
Ollama · LM Studio · Cloudflare AI Gateway · Vercel AI Gateway
OpenRouter + Sente
Use OPENROUTER_API_KEY and the exact provider/model ID. The preset points to https://openrouter.ai/api/v1 and accepts ~ aliases. We verified the shipped launcher’s catalog/config against real OpenRouter, then sent one short completion to that configured endpoint: 16 prompt tokens, 8 completion tokens, API-reported cost $0.000007128. The full Sente agent/tool loop through OpenRouter is unverified. Listed models do not guarantee account authorization, available credit or tool support.
Install Python 3 and Sente with curl -fsSL https://teai.io/te | sh -s -- --gateway, or update using te update. Use the commands above, replacing model IDs/account IDs as needed. Token limits are examples: check both the model specification and server configuration.
Use te openrouter run "Read the README and explain how to run tests" or te openrouter tui. No teai account is required. API keys are read from environment variables and never saved to the connection profile. Inference follows your provider's billing and access policies.
macOS is the tested client platform; Windows PowerShell support is not included. External plugins are disabled in this dedicated mode, but project configuration and tools remain active. Gateway presets are not a network sandbox. Full end-to-end behavior beyond the evidence stated above remains unverified.