Skip to content

OpenAI-Compatible Providers

The built-in custom provider works with any OpenAI-compatible API using the Chat Completions endpoint.

Terminal window
swixter claude create openai-profile \
--provider custom \
--api-key sk-... \
--base-url https://api.openai.com/v1 \
--model gpt-4o
FieldValue
Provider IDcustom
Wire APIchat
Default Base URLhttps://api.openai.com/v1
Env KeyOPENAI_API_KEY

Any service with an OpenAI-compatible /v1/chat/completions endpoint works:

ServiceBase URL
OpenAIhttps://api.openai.com/v1
Groqhttps://api.groq.com/openai/v1
Together AIhttps://api.together.xyz/v1
DeepSeekhttps://api.deepseek.com/v1
Fireworkshttps://api.fireworks.ai/inference/v1
OpenRouterhttps://openrouter.ai/api/v1

For frequently used services, create a user-defined provider:

Terminal window
swixter providers add deepseek \
--name "DeepSeek" \
--base-url https://api.deepseek.com/v1 \
--wire-api chat \
--env-key DEEPSEEK_API_KEY

Then use it when creating profiles:

Terminal window
swixter claude create deepseek-profile --provider deepseek
  • Compatible with all coders (Claude Code, Codex, Continue.dev)
  • wire_api: "chat" type works universally

Customize the environment variable used for the API key (especially useful for Codex):

Terminal window
swixter codex create my-profile \
--provider custom \
--env-key GROQ_API_KEY