Guia de Configuracao de Provedores
Este guia cobre instrucoes detalhadas de configuracao para todos os provedores suportados pelo Claudex, incluindo provedores com chave API, assinaturas OAuth, plataformas cloud e modelos locais.
Provedores com Chave API
Seção intitulada “Provedores com Chave API”Anthropic
Seção intitulada “Anthropic”- Cadastre-se em console.anthropic.com
- Navegue ate API Keys e crie uma nova chave (formato:
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
Seção intitulada “MiniMax”- Cadastre-se em platform.minimaxi.com
- Navegue ate API Keys no console
[[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
Seção intitulada “OpenRouter”- Cadastre-se em openrouter.ai
- Obtenha sua chave API em openrouter.ai/keys
[[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)
Seção intitulada “Grok (xAI)”- Cadastre-se em console.x.ai
- Crie uma chave API no console
[[profiles]]name = "grok"provider_type = "OpenAICompatible"base_url = "https://api.x.ai/v1"api_key = "xai-..."default_model = "grok-3-beta"claudex profile test grok- Cadastre-se em platform.openai.com
- Crie uma chave API em platform.openai.com/api-keys
[[profiles]]name = "chatgpt"provider_type = "OpenAICompatible"base_url = "https://api.openai.com/v1"api_key = "sk-..."default_model = "gpt-4o"claudex profile test chatgptDeepSeek
Seção intitulada “DeepSeek”- Cadastre-se em platform.deepseek.com
- Crie uma chave API no console
[[profiles]]name = "deepseek"provider_type = "OpenAICompatible"base_url = "https://api.deepseek.com"api_key = "sk-..."default_model = "deepseek-chat"claudex profile test deepseekKimi / Moonshot
Seção intitulada “Kimi / Moonshot”- Cadastre-se em platform.moonshot.cn
- Crie uma chave API no console
[[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
Seção intitulada “GLM / Zhipu”- Cadastre-se em open.bigmodel.cn
- Crie uma chave API no console
[[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- Cadastre-se em console.groq.com
- Crie uma chave API em Settings > API Keys
[[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
Seção intitulada “Mistral AI”- Cadastre-se em console.mistral.ai
- Crie uma chave API no console
[[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
Seção intitulada “Together AI”- Cadastre-se em api.together.ai
- Crie uma chave API no dashboard
[[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
Seção intitulada “Perplexity”- Cadastre-se em perplexity.ai
- Crie uma chave API em perplexity.ai/settings/api
[[profiles]]name = "perplexity"provider_type = "OpenAICompatible"base_url = "https://api.perplexity.ai"api_key = "pplx-..."default_model = "sonar-pro"claudex profile test perplexityCerebras
Seção intitulada “Cerebras”- Cadastre-se em cloud.cerebras.ai
- Crie uma chave API no dashboard
[[profiles]]name = "cerebras"provider_type = "OpenAICompatible"base_url = "https://api.cerebras.ai/v1"api_key = "..."default_model = "llama-3.3-70b"claudex profile test cerebrasPlataformas Cloud
Seção intitulada “Plataformas Cloud”Azure OpenAI
Seção intitulada “Azure OpenAI”- Crie um recurso Azure OpenAI no Portal Azure
- Faca deploy de um modelo e anote o nome do recurso e do deployment
- Obtenha sua chave API em Keys and Endpoint
[[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
Seção intitulada “Google Vertex AI”- Habilite a API Vertex AI no seu projeto GCP
- Gere um token de acesso com
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 (via LiteLLM)
Seção intitulada “AWS Bedrock (via LiteLLM)”O AWS Bedrock e suportado atraves de um proxy LiteLLM:
- Instale o LiteLLM:
pip install litellm - Inicie o proxy:
litellm --model bedrock/anthropic.claude-sonnet-4-20250514-v2:0- Configure o 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"Assinaturas OAuth
Seção intitulada “Assinaturas OAuth”A autenticacao OAuth permite usar assinaturas existentes de provedores (ChatGPT Plus, Claude Max, etc.) em vez de chaves API separadas.
Claude Max / Pro
Seção intitulada “Claude Max / Pro”Use sua assinatura Claude existente atraves da sessao OAuth nativa do Claude Code.
Pre-requisitos: Claude Code instalado e logado (o comando claude funciona normalmente)
[[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
Seção intitulada “ChatGPT Plus / Codex CLI”Use sua assinatura ChatGPT Plus ou Pro via token do Codex CLI.
Pre-requisitos: Instale o Codex CLI e autentique:
# Instalar Codex CLInpm install -g @openai/codex
# Autenticar (abre o navegador)codex authEm seguida, configure o 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"# Ler token do Codex CLIclaudex auth login openai --profile codex-sub
# Verificarclaudex auth status
# Executarclaudex run codex-subGoogle Gemini
Seção intitulada “Google Gemini”Use sua conta Google via credenciais do Gemini CLI.
[[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"# Login le das credenciais do Gemini CLIclaudex auth login google --profile gemini-sub
# Verificarclaudex auth statusQwen / Tongyi Qianwen
Seção intitulada “Qwen / Tongyi Qianwen”Use sua conta Qwen via fluxo OAuth Device Code.
[[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"# Iniciar fluxo device codeclaudex auth login qwen --profile qwen-oauth
# Verificarclaudex auth statusKimi / Moonshot (OAuth)
Seção intitulada “Kimi / Moonshot (OAuth)”Use sua conta Kimi via credenciais do Kimi CLI.
[[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"# Login le das credenciais do Kimi CLIclaudex auth login kimi --profile kimi-oauth
# Verificarclaudex auth statusGitHub Copilot
Seção intitulada “GitHub Copilot”Use sua assinatura GitHub Copilot via fluxo OAuth Device Code.
[[profiles]]name = "copilot"provider_type = "OpenAICompatible"base_url = "https://api.githubcopilot.com"default_model = "gpt-4o"auth_type = "oauth"oauth_provider = "github"# Iniciar fluxo device code (abre o navegador para login no GitHub)claudex auth login github --profile copilot
# Verificarclaudex auth statusGitLab Duo
Seção intitulada “GitLab Duo”Use sua assinatura GitLab Duo via Personal Access Token.
[[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"# Defina seu token GitLab como variavel de ambienteexport GITLAB_TOKEN=glpat-...
# Loginclaudex auth login gitlab --profile gitlab-duo
# Verificarclaudex auth statusModelos Locais
Seção intitulada “Modelos Locais”- Instale o Ollama: ollama.com
- Baixe um modelo:
ollama pull qwen2.5:72b- Configure o 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- Instale e inicie o vLLM:
pip install vllmvllm serve meta-llama/Llama-3.3-70B-Instruct --port 8000- Configure o 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
Seção intitulada “LM Studio”- Baixe o LM Studio em lmstudio.ai
- Carregue um modelo e inicie o servidor local (porta padrao: 1234)
[[profiles]]name = "lm-studio"provider_type = "OpenAICompatible"base_url = "http://localhost:1234/v1"api_key = "lm-studio"default_model = "local-model"Verificando sua Configuracao
Seção intitulada “Verificando sua Configuracao”Apos configurar qualquer provedor, verifique a conectividade:
# Testar um profile especificoclaudex profile test <profile-name>
# Testar todos os profilesclaudex profile test all
# Listar todos os profiles configuradosclaudex profile list