CachyCLI
Guide04 / Providers
Guide · 04

Providers

A provider is where your messages go. CachyCLI picks a sensible one on its own, and you can change it any time by typing /provider inside the interface.

choosing a provider/PROVIDER
CachyCLI provider picker listing opencode, Claude Code, your models and an editor agent

The list

ProviderWhat it usesSign-in
opencodeYour opencode install — its models, logins and toolsopens the opencode sign-in
Claude CodeThe Claude Code CLI on this machineruns Claude Code so you can log in
Your modelsAny endpoint you configure (hosted or local)cachycli login --api-key …
Editor agentAn agent that speaks the editor standardhandled by that agent

The picker shows the state of each one, so you always know what is ready and what still needs a sign-in.

Recommended if you already use it

Connect opencode

Nothing to configure: CachyCLI uses your opencode — same logins, same models, same tools. If you are not signed in yet, choosing it starts the opencode sign-in, which opens your browser.

Inside the interface

/provider          then pick "opencode"

Or make it the default

[agent]
provider = "opencode"

Connect Claude Code

CachyCLI can drive the Claude Code CLI: your existing subscription, its tools, its permissions. Choose Claude Code in the picker; if it is not signed in, CachyCLI steps aside, runs Claude Code so you can finish the login, and comes back.

Requirements

# the Claude Code CLI must be installed
npm install -g @anthropic-ai/claude-code

# then, inside CachyCLI
/provider          then pick "Claude Code"

Switching is per session

Changing provider does not delete anything: your CachyCLI sessions stay where they are, and the next message simply goes to the new provider.

Connect Codex or Gemini

The other two CLI agents work the same way: CachyCLI runs them headless and renders what they do. Their own login is what counts — CachyCLI never sees it.

$ npm i -g @openai/codex     # then: cachycli --provider codex
$ npm i -g @google/gemini-cli # then: cachycli --provider gemini

Both keep their own session ids, so --resume continues the conversation there instead of starting over.

Use your own models

Add an endpoint once and it appears in the model picker — a hosted API or something running on your machine.

[model.my-model]
model = "llama-3.1-70b"
base_url = "http://localhost:8080/v1"
name = "Local Llama"
  • ▪Keys and endpoints: Models & keys.
  • ▪Switch model at any time with /model inside the interface.

Pick one for a single run

$ cachycli --provider opencode
$ cachycli --provider claude-code -p "summarize this diff"

# remember a choice
[agent]
provider = "opencode"

Run without any of this and CachyCLI uses the first provider that is installed and signed in — usually opencode.