Guida alla configurazione dei fornitori
Questa guida copre le istruzioni dettagliate per la configurazione di ogni fornitore supportato da Claudex, inclusi fornitori con chiave API, abbonamenti OAuth, piattaforme cloud e modelli locali.
Fornitori con chiave API
Sezione intitolata “Fornitori con chiave API”Anthropic
Sezione intitolata “Anthropic”- Registrati su console.anthropic.com
- Vai su API Keys e crea una nuova chiave (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
Sezione intitolata “MiniMax”- Registrati su platform.minimaxi.com
- Vai su API Keys nella 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
Sezione intitolata “OpenRouter”- Registrati su openrouter.ai
- Ottieni la tua chiave API su 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)
Sezione intitolata “Grok (xAI)”- Registrati su console.x.ai
- Crea una chiave API nella 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- Registrati su platform.openai.com
- Crea una chiave API su 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
Sezione intitolata “DeepSeek”- Registrati su platform.deepseek.com
- Crea una chiave API nella 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
Sezione intitolata “Kimi / Moonshot”- Registrati su platform.moonshot.cn
- Crea una chiave API nella 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
Sezione intitolata “GLM / Zhipu”- Registrati su open.bigmodel.cn
- Crea una chiave API nella 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- Registrati su console.groq.com
- Crea una chiave API in 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
Sezione intitolata “Mistral AI”- Registrati su console.mistral.ai
- Crea una chiave API nella 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
Sezione intitolata “Together AI”- Registrati su api.together.ai
- Crea una chiave API nella 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
Sezione intitolata “Perplexity”- Registrati su perplexity.ai
- Crea una chiave API su 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
Sezione intitolata “Cerebras”- Registrati su cloud.cerebras.ai
- Crea una chiave API nella 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 cerebrasPiattaforme cloud
Sezione intitolata “Piattaforme cloud”Azure OpenAI
Sezione intitolata “Azure OpenAI”- Crea una risorsa Azure OpenAI nel portale Azure
- Distribuisci un modello e annota il nome della risorsa e del deployment
- Ottieni la chiave API da Chiavi e 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
Sezione intitolata “Google Vertex AI”- Abilita l’API Vertex AI nel tuo progetto GCP
- Genera un token di accesso con
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 (tramite LiteLLM)
Sezione intitolata “AWS Bedrock (tramite LiteLLM)”AWS Bedrock e supportato tramite un proxy LiteLLM:
- Installa LiteLLM:
pip install litellm - Avvia il proxy:
litellm --model bedrock/anthropic.claude-sonnet-4-20250514-v2:0- Configura 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"Abbonamenti OAuth
Sezione intitolata “Abbonamenti OAuth”L’autenticazione OAuth ti permette di usare abbonamenti esistenti (ChatGPT Plus, Claude Max, ecc.) invece di chiavi API separate.
Claude Max / Pro
Sezione intitolata “Claude Max / Pro”Usa il tuo abbonamento Claude esistente tramite la sessione OAuth nativa di Claude Code.
Prerequisiti: Claude Code installato e con accesso effettuato (il comando claude funziona 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
Sezione intitolata “ChatGPT Plus / Codex CLI”Usa il tuo abbonamento ChatGPT Plus o Pro tramite il token Codex CLI.
Prerequisiti: Installa Codex CLI e autentica:
# Installa Codex CLInpm install -g @openai/codex
# Autenticati (apre il browser)codex authPoi configura 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"# Leggi il token da Codex CLIclaudex auth login openai --profile codex-sub
# Verificaclaudex auth status
# Eseguiclaudex run codex-subGoogle Gemini
Sezione intitolata “Google Gemini”Usa il tuo account Google tramite le credenziali di 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"# Il login legge dalle credenziali di Gemini CLIclaudex auth login google --profile gemini-sub
# Verificaclaudex auth statusQwen / Tongyi Qianwen
Sezione intitolata “Qwen / Tongyi Qianwen”Usa il tuo account Qwen tramite il flusso 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"# Avvia il flusso device codeclaudex auth login qwen --profile qwen-oauth
# Verificaclaudex auth statusKimi / Moonshot (OAuth)
Sezione intitolata “Kimi / Moonshot (OAuth)”Usa il tuo account Kimi tramite le credenziali di 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"# Il login legge dalle credenziali di Kimi CLIclaudex auth login kimi --profile kimi-oauth
# Verificaclaudex auth statusGitHub Copilot
Sezione intitolata “GitHub Copilot”Usa il tuo abbonamento GitHub Copilot tramite il flusso 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"# Avvia il flusso device code (apre il browser per il login GitHub)claudex auth login github --profile copilot
# Verificaclaudex auth statusGitLab Duo
Sezione intitolata “GitLab Duo”Usa il tuo abbonamento GitLab Duo tramite un 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"# Imposta il token GitLab come variabile d'ambienteexport GITLAB_TOKEN=glpat-...
# Loginclaudex auth login gitlab --profile gitlab-duo
# Verificaclaudex auth statusModelli locali
Sezione intitolata “Modelli locali”- Installa Ollama: ollama.com
- Scarica un modello:
ollama pull qwen2.5:72b- Configura 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- Installa e avvia vLLM:
pip install vllmvllm serve meta-llama/Llama-3.3-70B-Instruct --port 8000- Configura 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
Sezione intitolata “LM Studio”- Scarica LM Studio da lmstudio.ai
- Carica un modello e avvia il server locale (porta predefinita: 1234)
[[profiles]]name = "lm-studio"provider_type = "OpenAICompatible"base_url = "http://localhost:1234/v1"api_key = "lm-studio"default_model = "local-model"Verifica della configurazione
Sezione intitolata “Verifica della configurazione”Dopo aver configurato un fornitore, verifica la connettivita:
# Testa un profilo specificoclaudex profile test <profile-name>
# Testa tutti i profiliclaudex profile test all
# Elenca tutti i profili configuraticlaudex profile list