Kimi Code
Kimi Code 設定チュートリアル
Section titled “Kimi Code 設定チュートリアル”設定ファイルの場所
Section titled “設定ファイルの場所”デフォルトの設定ファイルは ~/.kimi/config.toml にあります。初回起動時に設定ファイルが存在しない場合、Kimi Code CLI がデフォルト設定のファイルを自動で作成します。
--config-file パラメータを使って、別の設定ファイル(TOML 形式または JSON 形式)を指定することもできます。
kimi --config-file /path/to/config.toml設定ファイルには、以下のトップレベル設定項目があります。
| 設定項目 | 型 | 説明 |
|---|---|---|
default_model | string | デフォルトで使用するモデル名。models で定義されたモデルである必要があります |
default_thinking | boolean | デフォルトで Thinking モードを有効にするかどうか(既定値は false) |
default_yolo | boolean | デフォルトで YOLO(自動承認)モードを有効にするかどうか(既定値は false) |
providers | table | API プロバイダの設定 |
models | table | モデルの設定 |
loop_control | table | Agent のループ制御パラメータ |
services | table | 外部サービス設定(検索、取得) |
mcp | table | MCP クライアント設定 |
URL と KEY の設定
Section titled “URL と KEY の設定”**openai_legacy**
Section titled “**openai_legacy**”OpenAI Chat Completions API の形式に対応しています。
[providers.openai]type = "openai_legacy"base_url = "https://api.4allapi.com/v1"api_key = "sk-xxx"**anthropic**
Section titled “**anthropic**”Anthropic Claude API に接続するために使用します。
[providers.anthropic]type = "anthropic"base_url = "https://api.4allapi.com"api_key = "sk-xxx"**gemini**
Section titled “**gemini**”Google Gemini 系のモデルに接続するために使用します。
[providers.gemini]type = "gemini"base_url = "https://api.4allapi.com"api_key = "sk-xxx"4All API フッター
Section titled “4All API フッター”4All API · ワンストップ AI 大規模モデル API アグリゲーションプラットフォーム | 料金 | お問い合わせ
© 2025 4All API. All rights reserved.