opencli
Reference

Point it at any provider.

OpenCLI is provider-agnostic. Sign in with a subscription or an API key, switch models mid-session, and add any OpenAI-compatible endpoint. This catalogue reflects the latest release.

OpenAI

ChatGPT subscription (OAuth) or API key

The GPT-5 family over the Responses and Chat Completions APIs. A ChatGPT Plus, Pro, Team, or Enterprise subscription signs in over OAuth. An API key unlocks the full public catalogue.

Anthropic

Claude subscription (OAuth) or API key

The Claude 4 family over the Messages API, with adaptive extended thinking on the newest models. A Claude Pro or Max subscription signs in over OAuth after a terms acknowledgement.

OpenAI-compatible

Custom base URL and key in config.json

Any OpenAI-compatible endpoint, hosted or local. Declare a base URL, key, and context limit under providers in config.json and address it as provider/model.

The current catalogue

Context windows are approximate. Retired ids auto-migrate to their current equivalent on startup, so an existing config keeps working across releases.

OpenAI

7 models
gpt-5.5

Default. Largest OpenAI context window.

1.05M
gpt-5.5-pro

Extended reasoning for hard agent tasks.

1.05M
gpt-5.4

Previous frontier, stable.

1M
gpt-5.4-mini

Fast and cheaper, strong for routine code.

400K
gpt-5.4-nano

Latency-sensitive, cheapest.

200K
gpt-5.2

Earlier frontier, still selectable.

400K
gpt-5

Earlier frontier, still selectable.

400K

Anthropic

7 models
claude-opus-4-8

Adaptive extended thinking.

1M
claude-opus-4-7

Adaptive extended thinking.

1M
claude-opus-4-6

Adaptive extended thinking.

1M
claude-opus-4-5

Prior Opus generation.

200K
claude-sonnet-4-6

Adaptive extended thinking.

1M
claude-sonnet-4-5

Prior Sonnet generation.

200K
claude-haiku-4-5

Fastest, lowest cost.

200K

Reasoning levels

The same effort scale works across providers. The newest Claude models think adaptively at the top of the range.

lowmediumhighxhigh

OpenAI-compatible endpoints

Declare a base URL, key, and context limit under providers in config.json, then address the model as provider/model.

config.json
{
  "providers": {
    "groq": {
      "base_url": "https://api.groq.com/openai/v1",
      "api_key": "...",
      "context_limit": 131072
    }
  }
}

Model availability changes between releases. The catalogue in the binary is always the source of truth.

Read the source