プロバイダーセットアップガイド
このガイドでは、API キープロバイダー、OAuth サブスクリプション、クラウドプラットフォーム、ローカルモデルを含む、Claudex がサポートするすべてのプロバイダーの詳細なセットアップ手順を説明します。
API キープロバイダー
Section titled “API キープロバイダー”Anthropic
Section titled “Anthropic”- console.anthropic.com でサインアップ
- API Keys に移動して新しいキーを作成(形式:
sk-ant-*)
[[profiles]]name = "anthropic"provider_type = "DirectAnthropic"base_url = "https://api.anthropic.com"api_key = "sk-ant-..."default_model = "claude-sonnet-4-20250514"claudex profile test anthropicMiniMax
Section titled “MiniMax”- platform.minimaxi.com でサインアップ
- コンソールの API Keys に移動
[[profiles]]name = "minimax"provider_type = "DirectAnthropic"base_url = "https://api.minimax.io/anthropic"api_key = "..."default_model = "claude-sonnet-4-20250514"claudex profile test minimaxOpenRouter
Section titled “OpenRouter”- openrouter.ai でサインアップ
- openrouter.ai/keys で API キーを取得
[[profiles]]name = "openrouter"provider_type = "OpenAICompatible"base_url = "https://openrouter.ai/api/v1"api_key = "sk-or-..."default_model = "anthropic/claude-sonnet-4"claudex profile test openrouterGrok (xAI)
Section titled “Grok (xAI)”- console.x.ai でサインアップ
- コンソールで API キーを作成
[[profiles]]name = "grok"provider_type = "OpenAICompatible"base_url = "https://api.x.ai/v1"api_key = "xai-..."default_model = "grok-3-beta"claudex profile test grokOpenAI
Section titled “OpenAI”- platform.openai.com でサインアップ
- platform.openai.com/api-keys で API キーを作成
[[profiles]]name = "chatgpt"provider_type = "OpenAICompatible"base_url = "https://api.openai.com/v1"api_key = "sk-..."default_model = "gpt-4o"claudex profile test chatgptDeepSeek
Section titled “DeepSeek”- platform.deepseek.com でサインアップ
- コンソールで API キーを作成
[[profiles]]name = "deepseek"provider_type = "OpenAICompatible"base_url = "https://api.deepseek.com"api_key = "sk-..."default_model = "deepseek-chat"claudex profile test deepseekKimi / Moonshot
Section titled “Kimi / Moonshot”- platform.moonshot.cn でサインアップ
- コンソールで API キーを作成
[[profiles]]name = "kimi"provider_type = "OpenAICompatible"base_url = "https://api.moonshot.ai/v1"api_key = "sk-..."default_model = "kimi-k2-0905-preview"claudex profile test kimiGLM / Zhipu
Section titled “GLM / Zhipu”- open.bigmodel.cn でサインアップ
- コンソールで API キーを作成
[[profiles]]name = "glm"provider_type = "OpenAICompatible"base_url = "https://api.z.ai/api/paas/v4"api_key = "..."default_model = "glm-4.6"claudex profile test glm- console.groq.com でサインアップ
- Settings > API Keys で API キーを作成
[[profiles]]name = "groq"provider_type = "OpenAICompatible"base_url = "https://api.groq.com/openai/v1"api_key = "gsk_..."default_model = "llama-3.3-70b-versatile"claudex profile test groqMistral AI
Section titled “Mistral AI”- console.mistral.ai でサインアップ
- コンソールで API キーを作成
[[profiles]]name = "mistral"provider_type = "OpenAICompatible"base_url = "https://api.mistral.ai/v1"api_key = "..."default_model = "mistral-large-latest"claudex profile test mistralTogether AI
Section titled “Together AI”- api.together.ai でサインアップ
- ダッシュボードで API キーを作成
[[profiles]]name = "together"provider_type = "OpenAICompatible"base_url = "https://api.together.xyz/v1"api_key = "..."default_model = "meta-llama/Llama-3.3-70B-Instruct-Turbo"claudex profile test togetherPerplexity
Section titled “Perplexity”- perplexity.ai でサインアップ
- perplexity.ai/settings/api で API キーを作成
[[profiles]]name = "perplexity"provider_type = "OpenAICompatible"base_url = "https://api.perplexity.ai"api_key = "pplx-..."default_model = "sonar-pro"claudex profile test perplexityCerebras
Section titled “Cerebras”- cloud.cerebras.ai でサインアップ
- ダッシュボードで API キーを作成
[[profiles]]name = "cerebras"provider_type = "OpenAICompatible"base_url = "https://api.cerebras.ai/v1"api_key = "..."default_model = "llama-3.3-70b"claudex profile test cerebrasクラウドプラットフォーム
Section titled “クラウドプラットフォーム”Azure OpenAI
Section titled “Azure OpenAI”- Azure Portal で Azure OpenAI リソースを作成
- モデルをデプロイし、リソース名とデプロイメント名をメモ
- Keys and Endpoint から API キーを取得
[[profiles]]name = "azure-openai"provider_type = "OpenAICompatible"base_url = "https://YOUR_RESOURCE.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT"api_key = "YOUR_AZURE_KEY"default_model = "gpt-4o"
[profiles.query_params]api-version = "2024-12-01-preview"claudex profile test azure-openaiGoogle Vertex AI
Section titled “Google Vertex AI”- GCP プロジェクトで Vertex AI API を有効化
gcloud auth print-access-tokenでアクセストークンを生成
[[profiles]]name = "vertex-ai"provider_type = "DirectAnthropic"base_url = "https://us-east5-aiplatform.googleapis.com/v1/projects/YOUR_PROJECT/locations/us-east5/publishers/anthropic/models"api_key = "YOUR_GCLOUD_TOKEN"default_model = "claude-sonnet-4@20250514"claudex profile test vertex-aiAWS Bedrock(LiteLLM 経由)
Section titled “AWS Bedrock(LiteLLM 経由)”AWS Bedrock は LiteLLM プロキシ経由でサポートされます:
- LiteLLM をインストール:
pip install litellm - プロキシを起動:
litellm --model bedrock/anthropic.claude-sonnet-4-20250514-v2:0- Claudex を設定:
[[profiles]]name = "bedrock"provider_type = "OpenAICompatible"base_url = "http://localhost:4000/v1"api_key = "sk-litellm"default_model = "bedrock/anthropic.claude-sonnet-4-20250514-v2:0"OAuth サブスクリプション
Section titled “OAuth サブスクリプション”OAuth 認証により、別途 API キーを取得せず既存のプロバイダーサブスクリプション(ChatGPT Plus、Claude Max など)を使用できます。
Claude Max / Pro
Section titled “Claude Max / Pro”Claude Code のネイティブ OAuth セッションを通じて既存の Claude サブスクリプションを使用します。
前提条件: Claude Code がインストールされてログイン済み(claude コマンドが正常に動作すること)
[[profiles]]name = "claude-max"provider_type = "DirectAnthropic"base_url = "https://api.claude.ai"default_model = "claude-sonnet-4-20250514"auth_type = "oauth"oauth_provider = "claude"
[profiles.models]haiku = "claude-haiku-4-20250514"sonnet = "claude-sonnet-4-20250514"opus = "claude-opus-4-20250514"ChatGPT Plus / Codex CLI
Section titled “ChatGPT Plus / Codex CLI”Codex CLI トークンを通じて ChatGPT Plus または Pro サブスクリプションを使用します。
前提条件: Codex CLI をインストールして認証します:
# Codex CLI をインストールnpm install -g @openai/codex
# 認証(ブラウザが開きます)codex auth次に Claudex を設定します:
[[profiles]]name = "codex-sub"provider_type = "OpenAIResponses"base_url = "https://chatgpt.com/backend-api/codex"default_model = "gpt-5.3-codex"auth_type = "oauth"oauth_provider = "openai"
[profiles.models]haiku = "codex-mini-latest"sonnet = "gpt-5.3-codex"opus = "gpt-5.3-codex"# Codex CLI からトークンを読み取るclaudex auth login openai --profile codex-sub
# 確認claudex auth status
# 実行claudex run codex-subGoogle Gemini
Section titled “Google Gemini”Gemini CLI のクレデンシャル経由で Google アカウントを使用します。
[[profiles]]name = "gemini-sub"provider_type = "OpenAICompatible"base_url = "https://generativelanguage.googleapis.com/v1beta/openai"default_model = "gemini-2.5-pro"auth_type = "oauth"oauth_provider = "google"
[profiles.models]haiku = "gemini-2.0-flash"sonnet = "gemini-2.5-pro"opus = "gemini-2.5-pro"# Gemini CLI のクレデンシャルから読み取ってログインclaudex auth login google --profile gemini-sub
# 確認claudex auth statusQwen / 通義千問
Section titled “Qwen / 通義千問”OAuth デバイスコードフローを通じて Qwen アカウントを使用します。
[[profiles]]name = "qwen-oauth"provider_type = "OpenAICompatible"base_url = "https://chat.qwen.ai/api"default_model = "qwen3-235b-a22b"auth_type = "oauth"oauth_provider = "qwen"# デバイスコードフローを開始claudex auth login qwen --profile qwen-oauth
# 確認claudex auth statusKimi / Moonshot(OAuth)
Section titled “Kimi / Moonshot(OAuth)”Kimi CLI のクレデンシャル経由で Kimi アカウントを使用します。
[[profiles]]name = "kimi-oauth"provider_type = "OpenAICompatible"base_url = "https://api.moonshot.cn/v1"default_model = "moonshot-v1-128k"auth_type = "oauth"oauth_provider = "kimi"# Kimi CLI のクレデンシャルから読み取ってログインclaudex auth login kimi --profile kimi-oauth
# 確認claudex auth statusGitHub Copilot
Section titled “GitHub Copilot”OAuth デバイスコードフローを通じて GitHub Copilot サブスクリプションを使用します。
[[profiles]]name = "copilot"provider_type = "OpenAICompatible"base_url = "https://api.githubcopilot.com"default_model = "gpt-4o"auth_type = "oauth"oauth_provider = "github"# デバイスコードフローを開始(GitHub ログイン用のブラウザが開きます)claudex auth login github --profile copilot
# 確認claudex auth statusGitLab Duo
Section titled “GitLab Duo”パーソナルアクセストークンを通じて GitLab Duo サブスクリプションを使用します。
[[profiles]]name = "gitlab-duo"provider_type = "OpenAICompatible"base_url = "https://gitlab.com/api/v4/ai/llm/proxy"default_model = "claude-sonnet-4-20250514"auth_type = "oauth"oauth_provider = "gitlab"# GitLab トークンを環境変数として設定export GITLAB_TOKEN=glpat-...
# ログインclaudex auth login gitlab --profile gitlab-duo
# 確認claudex auth statusローカルモデル
Section titled “ローカルモデル”Ollama
Section titled “Ollama”- Ollama をインストール: ollama.com
- モデルをダウンロード:
ollama pull qwen2.5:72b- Claudex を設定:
[[profiles]]name = "local-qwen"provider_type = "OpenAICompatible"base_url = "http://localhost:11434/v1"api_key = ""default_model = "qwen2.5:72b"claudex profile test local-qwen- vLLM をインストールして起動:
pip install vllmvllm serve meta-llama/Llama-3.3-70B-Instruct --port 8000- Claudex を設定:
[[profiles]]name = "local-llama"provider_type = "OpenAICompatible"base_url = "http://localhost:8000/v1"api_key = ""default_model = "meta-llama/Llama-3.3-70B-Instruct"LM Studio
Section titled “LM Studio”- lmstudio.ai から LM Studio をダウンロード
- モデルをロードしてローカルサーバーを起動(デフォルトポート: 1234)
[[profiles]]name = "lm-studio"provider_type = "OpenAICompatible"base_url = "http://localhost:1234/v1"api_key = "lm-studio"default_model = "local-model"セットアップの確認
Section titled “セットアップの確認”プロバイダーを設定したら、接続を確認してください:
# 特定のプロファイルをテストclaudex profile test <profile-name>
# すべてのプロファイルをテストclaudex profile test all
# 設定済みのすべてのプロファイルを一覧表示claudex profile list