Skip to content

Provider Management

Provider management commands use the swixter providers prefix.

List all available providers.

Terminal window
swixter providers list

Shows built-in providers and user-defined providers with their details:

Built-in providers:
anthropic Anthropic Claude API wire_api: responses
ollama Local Ollama wire_api: chat
custom OpenAI-compatible API wire_api: chat
User-defined providers:
my-provider Custom endpoint wire_api: chat

Define a custom provider.

Terminal window
swixter providers add <id>

The interactive prompt asks for:

  • Name: Display name
  • Base URL: API endpoint
  • Wire API: chat or responses
  • Default env_key: Environment variable for API key (e.g., OPENAI_API_KEY)

Example:

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

User-defined providers are stored in ~/.config/swixter/providers.json.

View details of a specific provider.

Terminal window
swixter providers show <id>

Delete a user-defined provider.

Terminal window
swixter providers remove <id>

Built-in providers cannot be removed.

TypeDescriptionCompatible Coders
chatOpenAI-compatible chat completions endpointCodex, Continue.dev
responsesAnthropic Responses APIClaude Code

When creating Codex profiles, only wire_api: "chat" providers are available. The Anthropic provider (wire_api: "responses") is filtered out.