Skip to content

Provider Commands

Commands for managing BYOK (Bring Your Own Key) providers, testing connections, and listing available models.


Overview

The superqode providers command group manages provider connections:

superqode providers COMMAND [OPTIONS] [ARGS]

providers list

List available BYOK providers.

superqode providers list [OPTIONS]

Options

Option Description
--category Filter by category: us, china, other-labs, model-hosts, local, free
--tier Filter by tier: 1, 2, local
--configured Show only configured providers

Examples

# List all providers
superqode providers list

# List only US lab providers
superqode providers list --category us

# List only configured providers
superqode providers list --configured

# List free tier providers
superqode providers list --category free

# List local providers
superqode providers list --category local

Output

BYOK Providers
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Provider    โ”ƒ Name          โ”ƒ Tier   โ”ƒ Category    โ”ƒ Status           โ”ƒ Env Var               โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ anthropic   โ”‚ Anthropic     โ”‚ Tier 1 โ”‚ US Labs     โ”‚ [CORRECT] Configured    โ”‚ ANTHROPIC_API_KEY     โ”‚
โ”‚ openai      โ”‚ OpenAI        โ”‚ Tier 1 โ”‚ US Labs     โ”‚ [CORRECT] Configured    โ”‚ OPENAI_API_KEY        โ”‚
โ”‚ google      โ”‚ Google AI     โ”‚ Tier 1 โ”‚ US Labs     โ”‚ [INCORRECT] Not configuredโ”‚ GOOGLE_API_KEY        โ”‚
โ”‚ ollama      โ”‚ Ollama        โ”‚ Local  โ”‚ Local       โ”‚  Local         โ”‚ (none)                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Total: 15 providers, 2 configured

providers show

Show details for a specific provider.

superqode providers show PROVIDER_ID

Arguments

Argument Description
PROVIDER_ID Provider identifier (e.g., anthropic, ollama)

Example

superqode providers show anthropic

Output

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                    Provider: Anthropic                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Provider: Anthropic                                           โ”‚
โ”‚ ID: anthropic                                                 โ”‚
โ”‚ Tier: Tier 1 (First-class support)                           โ”‚
โ”‚ Category: US Labs                                             โ”‚
โ”‚ Status: [CORRECT] Configured                                         โ”‚
โ”‚                                                               โ”‚
โ”‚ Environment Variables:                                        โ”‚
โ”‚   โœ“ ANTHROPIC_API_KEY                                        โ”‚
โ”‚                                                               โ”‚
โ”‚ Example Models:                                               โ”‚
โ”‚   โ€ข claude-opus-4-5                                          โ”‚
โ”‚   โ€ข claude-sonnet-4-5                                        โ”‚
โ”‚   โ€ข claude-haiku-4-5                                         โ”‚
โ”‚   โ€ข claude-sonnet-4                                          โ”‚
โ”‚                                                               โ”‚
โ”‚ Documentation: https://docs.anthropic.com/                    โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

providers test

Test connection to a provider.

superqode providers test PROVIDER_ID [OPTIONS]

Arguments

Argument Description
PROVIDER_ID Provider identifier

Options

Option Description
--model, -m Model to test with (uses default if not specified)

Example

# Test with default model
superqode providers test anthropic

# Test with specific model
superqode providers test anthropic -m claude-sonnet-4

Output

Testing Anthropic with model claude-sonnet-4...

[CORRECT] Success!
  Provider: anthropic
  Model: claude-sonnet-4
  Tokens used: 15

providers mlx

Manage MLX (Apple Silicon) models and servers.

superqode providers mlx ACTION [OPTIONS]

Actions

Action Description
list List available MLX models (cached and server)
server Show command to start MLX server
models Show suggested MLX models
check Check if mlx_lm is installed
setup Complete setup guide for MLX

Examples

# List available MLX models
superqode providers mlx list

# Show server start command
superqode providers mlx server --model mlx-community/Qwen2.5-Coder-3B-4bit

# Show suggested models
superqode providers mlx models

# Check installation
superqode providers mlx check

# Full setup guide
superqode providers mlx setup

MLX Server Options

Option Description
--model, -m Model for server command
--host Server host (default: localhost)
--port Server port (default: 8080)

Connect Commands

connect byok

Connect to a BYOK (cloud) provider.

superqode connect byok PROVIDER MODEL

Arguments

Argument Description
PROVIDER Provider ID (e.g., anthropic, openai)
MODEL Model ID (e.g., claude-sonnet-4, gpt-4o)

Examples

# Connect to Anthropic
superqode connect byok anthropic claude-sonnet-4

# Connect to OpenAI
superqode connect byok openai gpt-4o

# Connect to Google AI
superqode connect byok google gemini-2.5-pro

connect acp

Connect to an ACP (Agent Client Protocol) agent.

superqode connect acp AGENT

Note: This command launches a simple CLI interactive session. For the full TUI experience, run superqode and use :connect acp <agent> inside the TUI.

Arguments

Argument Description
AGENT Agent ID (e.g., opencode)

Examples

# Connect to OpenCode (requires ZHIPUAI_API_KEY environment variable)
export ZHIPUAI_API_KEY=your-api-key-here
superqode connect acp opencode

Prerequisites

  • Agent must be installed (e.g., npm i -g opencode-ai for OpenCode)
  • Required API keys must be set as environment variables
  • Agent must pass health checks

connect local

Connect to a local/self-hosted provider.

superqode connect local PROVIDER MODEL

Arguments

Argument Description
PROVIDER Local provider ID (e.g., ollama, lmstudio, mlx)
MODEL Model ID

Examples

# Connect to Ollama
superqode connect local ollama qwen3:8b

# Connect to LM Studio
superqode connect local lmstudio local-model

# Connect to MLX
superqode connect local mlx mlx-community/Qwen2.5-Coder-3B-4bit

Provider Categories

US Labs (Tier 1)

Provider API Key Variable
anthropic ANTHROPIC_API_KEY
openai OPENAI_API_KEY
google GOOGLE_API_KEY
xai XAI_API_KEY
mistral MISTRAL_API_KEY

China Labs

Provider API Key Variable
deepseek DEEPSEEK_API_KEY
zhipu ZHIPU_API_KEY
alibaba ALIBABA_API_KEY

Model Hosts

Provider API Key Variable
openrouter OPENROUTER_API_KEY
together TOGETHER_API_KEY
groq GROQ_API_KEY
fireworks FIREWORKS_API_KEY

Local Providers

Provider Default Port Notes
ollama 11434 Easy local deployment
lmstudio 1234 GUI-based local models
mlx 8080 Apple Silicon optimized
vllm 8000 High-performance inference

Setting Up Providers

Cloud Providers

# 1. Set API key
export ANTHROPIC_API_KEY=sk-ant-...

# 2. Verify configuration
superqode providers test anthropic

# 3. Connect
superqode connect byok anthropic claude-sonnet-4

Local Providers (Ollama)

# 1. Start Ollama
ollama serve

# 2. Pull a model
ollama pull qwen3:8b

# 3. Connect
superqode connect local ollama qwen3:8b

Local Providers (MLX)

# 1. Install MLX
pip install mlx-lm

# 2. Download model
mlx_lm.download mlx-community/Qwen2.5-Coder-3B-4bit

# 3. Start server (in separate terminal)
mlx_lm.server --model mlx-community/Qwen2.5-Coder-3B-4bit

# 4. Connect
superqode connect local mlx mlx-community/Qwen2.5-Coder-3B-4bit

Troubleshooting

Provider Not Configured

[INCORRECT] Provider 'anthropic' is not configured

Set: ANTHROPIC_API_KEY=your-api-key
Get your API key at: https://docs.anthropic.com/

Solution: Set the required environment variable.

Connection Failed

[INCORRECT] Connection failed: Connection refused

Solution for local providers: Ensure the server is running.

# For Ollama
ollama serve

# For MLX
mlx_lm.server --model <model-id>

Model Not Found

[INCORRECT] Error: Model 'unknown-model' not found

Solution: Check available models for the provider.

superqode providers show anthropic

Next Steps