Przewodnik konfiguracji dostawcy
Ten przewodnik zawiera szczegolowe instrukcje konfiguracji dla kazdego dostawcy obslugiwanego przez Claudex, w tym dostawcow kluczy API, subskrypcji OAuth, platform chmurowych i modeli lokalnych.
Dostawcy kluczy API
Dział zatytułowany „Dostawcy kluczy API”Anthropic
Dział zatytułowany „Anthropic”- Zarejestruj sie na console.anthropic.com
- Przejdz do API Keys i utworz nowy klucz (format:
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
Dział zatytułowany „MiniMax”- Zarejestruj sie na platform.minimaxi.com
- Przejdz do API Keys w konsoli
[[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
Dział zatytułowany „OpenRouter”- Zarejestruj sie na openrouter.ai
- Pobierz klucz API na 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)
Dział zatytułowany „Grok (xAI)”- Zarejestruj sie na console.x.ai
- Utworz klucz API w konsoli
[[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- Zarejestruj sie na platform.openai.com
- Utworz klucz API na 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
Dział zatytułowany „DeepSeek”- Zarejestruj sie na platform.deepseek.com
- Utworz klucz API w konsoli
[[profiles]]name = "deepseek"provider_type = "OpenAICompatible"base_url = "https://api.deepseek.com"api_key = "sk-..."default_model = "deepseek-chat"claudex profile test deepseekKimi / Moonshot
Dział zatytułowany „Kimi / Moonshot”- Zarejestruj sie na platform.moonshot.cn
- Utworz klucz API w konsoli
[[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
Dział zatytułowany „GLM / Zhipu”- Zarejestruj sie na open.bigmodel.cn
- Utworz klucz API w konsoli
[[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- Zarejestruj sie na console.groq.com
- Utworz klucz API w 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
Dział zatytułowany „Mistral AI”- Zarejestruj sie na console.mistral.ai
- Utworz klucz API w konsoli
[[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
Dział zatytułowany „Together AI”- Zarejestruj sie na api.together.ai
- Utworz klucz API w panelu
[[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
Dział zatytułowany „Perplexity”- Zarejestruj sie na perplexity.ai
- Utworz klucz API na 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
Dział zatytułowany „Cerebras”- Zarejestruj sie na cloud.cerebras.ai
- Utworz klucz API w panelu
[[profiles]]name = "cerebras"provider_type = "OpenAICompatible"base_url = "https://api.cerebras.ai/v1"api_key = "..."default_model = "llama-3.3-70b"claudex profile test cerebrasPlatformy chmurowe
Dział zatytułowany „Platformy chmurowe”Azure OpenAI
Dział zatytułowany „Azure OpenAI”- Utworz zasob Azure OpenAI w Azure Portal
- Wdraz model i zapisz nazwe zasobu oraz nazwe wdrozenia
- Pobierz klucz API z 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
Dział zatytułowany „Google Vertex AI”- Wlacz API Vertex AI w swoim projekcie GCP
- Wygeneruj token dostepu za pomoca
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 (przez LiteLLM)
Dział zatytułowany „AWS Bedrock (przez LiteLLM)”AWS Bedrock jest obslugiwany przez proxy LiteLLM:
- Zainstaluj LiteLLM:
pip install litellm - Uruchom proxy:
litellm --model bedrock/anthropic.claude-sonnet-4-20250514-v2:0- Skonfiguruj 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"Subskrypcje OAuth
Dział zatytułowany „Subskrypcje OAuth”Uwierzytelnianie OAuth pozwala uzywac istniejacych subskrypcji dostawcy (ChatGPT Plus, Claude Max itp.) zamiast osobnych kluczy API.
Claude Max / Pro
Dział zatytułowany „Claude Max / Pro”Uzyj istniejacej subskrypcji Claude przez natywna sesje OAuth Claude Code.
Wymagania wstepne: Claude Code zainstalowany i zalogowany (polecenie claude dziala normalnie)
[[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
Dział zatytułowany „ChatGPT Plus / Codex CLI”Uzyj subskrypcji ChatGPT Plus lub Pro przez token Codex CLI.
Wymagania wstepne: Zainstaluj Codex CLI i uwierzytelnij sie:
# Zainstaluj Codex CLInpm install -g @openai/codex
# Uwierzytelnianie (otwiera przegladarke)codex authNastepnie skonfiguruj 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"# Odczytaj token z Codex CLIclaudex auth login openai --profile codex-sub
# Weryfikacjaclaudex auth status
# Uruchomienieclaudex run codex-subGoogle Gemini
Dział zatytułowany „Google Gemini”Uzyj konta Google przez poswiadczenia 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 odczytuje poswiadczenia z Gemini CLIclaudex auth login google --profile gemini-sub
# Weryfikacjaclaudex auth statusQwen / Tongyi Qianwen
Dział zatytułowany „Qwen / Tongyi Qianwen”Uzyj konta Qwen przez przeplyw 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"# Uruchom przeplyw device codeclaudex auth login qwen --profile qwen-oauth
# Weryfikacjaclaudex auth statusKimi / Moonshot (OAuth)
Dział zatytułowany „Kimi / Moonshot (OAuth)”Uzyj konta Kimi przez poswiadczenia 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 odczytuje poswiadczenia z Kimi CLIclaudex auth login kimi --profile kimi-oauth
# Weryfikacjaclaudex auth statusGitHub Copilot
Dział zatytułowany „GitHub Copilot”Uzyj subskrypcji GitHub Copilot przez przeplyw 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"# Uruchom przeplyw device code (otwiera przegladarke do logowania GitHub)claudex auth login github --profile copilot
# Weryfikacjaclaudex auth statusGitLab Duo
Dział zatytułowany „GitLab Duo”Uzyj subskrypcji GitLab Duo przez 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"# Ustaw token GitLab jako zmienna srodowiskowaexport GITLAB_TOKEN=glpat-...
# Loginclaudex auth login gitlab --profile gitlab-duo
# Weryfikacjaclaudex auth statusModele lokalne
Dział zatytułowany „Modele lokalne”- Zainstaluj Ollama: ollama.com
- Pobierz model:
ollama pull qwen2.5:72b- Skonfiguruj 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- Zainstaluj i uruchom vLLM:
pip install vllmvllm serve meta-llama/Llama-3.3-70B-Instruct --port 8000- Skonfiguruj 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
Dział zatytułowany „LM Studio”- Pobierz LM Studio z lmstudio.ai
- Zaladuj model i uruchom serwer lokalny (domyslny port: 1234)
[[profiles]]name = "lm-studio"provider_type = "OpenAICompatible"base_url = "http://localhost:1234/v1"api_key = "lm-studio"default_model = "local-model"Weryfikacja konfiguracji
Dział zatytułowany „Weryfikacja konfiguracji”Po skonfigurowaniu dowolnego dostawcy sprawdz lacznosc:
# Przetestuj konkretny profilclaudex profile test <profile-name>
# Przetestuj wszystkie profileclaudex profile test all
# Wylistuj wszystkie skonfigurowane profileclaudex profile list