アプリで使うモデルを、開発作業にも。
Vercel AI Gatewayのキーで、Senteに依頼。アプリで使っているAI基盤から、手元のリポジトリを扱うための入口を追加しました。
teai登録不要の専用接続コマンド。
te vercel connectで設定し、runで依頼します。推論費用や利用条件は接続先に従います。接続して、最初の作業を渡す
Python 3とSente本体が必要です。既存利用者はte update。新規インストールは次のコマンドでteaiキー入力をスキップできます。macOS / Linuxのシェル向けです。
curl -fsSL https://teai.io/te | sh -s -- --gateway
Vercel AI GatewayのAPIキーをAI_GATEWAY_API_KEYへ設定します。モデルIDはゲートウェイのカタログから、ツール呼び出しに対応したチャットモデルを選んでください。
export AI_GATEWAY_API_KEY="$(python3 -c 'import getpass; print(getpass.getpass("Vercel AI Gateway key: "))')"
te vercel connect --model openai/gpt-4o-mini --context 32768 --output 4096
te vercel run "READMEを読み、変更前に実行すべきテストを教えて"
OpenAI互換APIのベースURLはhttps://ai-gateway.vercel.sh/v1。Authorization: Bearerで認証し、/modelsでモデル名を確認します。VercelのAI SDK本来のエンドポイントと混同せず、この互換APIを指定しています。
対話画面はte vercel tui。まずは読み取りの依頼から始め、修正を頼むときは「対象・期待する動作・テスト手順」を添えると、結果を確認しやすくなります。
何を確認したか
実Vercel AI Gatewayへの認証・生成は未検証です。このガイドはAPIキー方式です。OIDCトークンの取得・更新、利用額の照合は今回の機能に含めていません。
接続先ごとに、設定を分ける
te vercel status # 接続先・選択モデルを確認
te vercel config # キーを含まない設定JSON
te vercel --help
プロファイルは~/.config/teai/vercel/connection.jsonへ保存します。APIキーは保存せず、必要な場合に環境変数から読みます。モデル変更時はconnectを再実行してください。
専用のグローバル設定で起動するため、通常のteのモデル設定は変更しません。個人用の外部プラグインは読み込まず、プロジェクトの指示・設定は有効です。モデルの推論先を指定する機能で、MCPやコマンドの外部通信を制限する機能ではありません。
このクライアントの独自モデル表示額は、請求額の根拠にはできません。料金・使用量は接続先で確認してください。モデル一覧から全モデルのツール対応や上限を自動判定せず、選択したモデルだけを実行設定に登録します。
次に試すなら
READMEを読み、テスト実行に必要なコマンドを教えて。
まだファイルは変更しないで。一件ずつ、実行結果を見ながら。接続先の選択と、仕事の完了をつなぐための小さな入口です。
Vercel AI Gateway 公式仕様 · LiteLLM編
Ollama · LM Studio · OpenRouter · Cloudflare AI Gateway
Vercel AI Gateway + Sente
Set AI_GATEWAY_API_KEY and choose a tool-capable chat model from your gateway catalog. The preset uses https://ai-gateway.vercel.sh/v1, the documented OpenAI-compatible endpoint. Bearer headers, profile separation and configuration were verified with a local HTTP fixture. Real Vercel authentication/generation are unverified. This guide uses API keys; automatic OIDC token acquisition/refresh is not included.
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 vercel run "Read the README and explain how to run tests" or te vercel 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.