opencli

Open-source coding agent for your terminal

A coding agent that lives in your terminal.

Rust-fast and provider-agnostic. One open-source binary, a drop-in for Claude Code, at home in any repository.

One binary.
Any model.

OpenCLI routes a single agent to whichever provider you point it at. Switch models mid-session, or fail over automatically when one is rate-limited.

ChatGPT subscription (OAuth) or API key

routingopencli

Why you might reach for it

No daemon, no ceremony

one binary

A single opencli binary. Launch the full terminal UI or fire a one-shot from a script. Same agent either way, nothing running in the background.

Bring your own provider

your brain

Sign in with a ChatGPT or Claude subscription over OAuth, or paste an API key. Switch models mid-session. Add any OpenAI-compatible endpoint, local or hosted.

A real tool belt, not a toy

tool belt

Twenty-five tools across files, shell, search, web, notebooks, sub-agents, todos, and plan mode. Streamed, schema-validated, and run in parallel where it is safe.

Code intelligence, zero setup

lsp

The lsp tool gives symbols, go-to-definition, references, and hover for Rust, TypeScript, JavaScript, Python, and Go. No language server to install.

Experiment without fear

worktree

enter_worktree spins the session into an isolated git worktree. exit_worktree cleans it up after a safety check, so you never clobber main.

Knows what it is spending

accounting

/usage reads your provider's live quota. /cost tallies tokens and dollars per model, cache-aware. /context shows where the window is going.

Stays up when a provider does not

failover

List fallback models and a rate-limit or overload transparently switches the turn to the next one and keeps going, instead of failing mid-task. Off by default.

Inherits your existing setup

memory

AGENTS.md and CLAUDE.md from the git root down to your working directory fold into the system prompt. Existing skills and sub-agents are discovered automatically.

A tool belt of 25

Open the field guide

Files, shell, search, web, notebooks, sub-agents, and flow control. Streamed, schema-validated, and run in parallel where it is safe.

read_filewrite_fileedit_filemulti_editlist_dirgrepgloblsprun_shellbash_outputkill_shellweb_fetchweb_searchtodo_writegoal_updateenter_plan_modeexit_plan_modewaitdispatch_agentask_user_questionskilltool_searchenter_worktreeexit_worktreenotebook_edit

Two ways to run it

Launch the full terminal UI, or go headless for scripts, cron, and systemd. Same agent either way.

opencli, opencli resume, opencli chat, opencli run

terminal
opencli                       # launch the terminal UI
opencli chat "add a test for the parser"
opencli chat --model claude-opus-4-8 --reasoning high "refactor auth"
echo "summarize CLAUDE.md" | opencli chat

Install in about a minute.

One binary on your PATH, then sign in. Build from source or grab a prebuilt archive for your platform.