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
Why you might reach for it
No daemon, no ceremony
one binaryA 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 brainSign 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 beltTwenty-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
lspThe 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
worktreeenter_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
failoverList 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
memoryAGENTS.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 guideFiles, shell, search, web, notebooks, sub-agents, and flow control. Streamed, schema-validated, and run in parallel where it is safe.
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
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 chatInstall in about a minute.
One binary on your PATH, then sign in. Build from source or grab a prebuilt archive for your platform.