Skip to content
Cosvexa – Cosvexa home

Cosvexa CLI

A coding agent in your terminal.

cosvexa reads and searches your project, edits files and runs commands, on every model in Cosvexa with one key and one credit balance. Two or three model families can also review your diff.

Install
npm i -g https://cosvexa.ai/downloads/cosvexa-cli-0.1.0.tgz
  • Every file write and command asks you first.
  • cosvexa-auto picks a tool-capable model for each request.
  • Each task ends with the credits it used.

Start in three steps.

You need Node.js 20 or newer and a Cosvexa API key.

  1. 01

    Install

    Install the package globally with npm. This puts the cosvexa command on your PATH on Windows, macOS and Linux.

    PowerShell · Terminal
    npm i -g https://cosvexa.ai/downloads/cosvexa-cli-0.1.0.tgz
    cosvexa --version
  2. 02

    Log in

    Paste your API key when asked; it is not shown as you type. The CLI checks the key before saving it. Keys start with cvx_ and are created by workspace owners and admins under Developer → API keys. Open API keys

    cosvexa login
    cosvexa login
    cosvexa status
  3. 03

    Give it a task

    Run cosvexa in your project folder with a task, or without one for an interactive session. In a session, /model switches models and /cost shows your credits.

    cosvexa
    cd my-project
    cosvexa "make the failing date test pass"
    cosvexa          # interactive session

Before writing a file it shows the change; before a command it shows the command. You answer yes, no or always for this session. --yes skips the questions, so use it only in a sandbox or CI.

More than one task at a time.

The things you expect from a terminal coding agent, on every model in Cosvexa.

Project instructions
Reads COSVEXA.md, AGENTS.md and CLAUDE.md from your project and its parent folders. cosvexa init drafts a COSVEXA.md for you.
cosvexa init
Sessions you can continue
Every conversation is saved on your machine. Continue the last one or pick from a list. /compact summarises a long conversation, automatically when the context is nearly full.
cosvexa -c · /compact
Safe by default
Every write shows its diff. --read-only only reads and searches. /undo puts back the last file change from a backup.
--read-only · /undo
Scripts and CI
-p prints only the result, --json gives the text, changed files and credits. Exit codes are non-zero on failure.
cosvexa -p --json "…"
Choose the thinking effort
--effort low, medium or high sets how much the selected model thinks before it answers; it never changes the model. -m picks the model.
--effort low|medium|high
MCP servers
Add MCP servers to your config and the agent can use their tools, each call with your approval.
cosvexa mcp

Council review

Several models review one diff.

cosvexa review sends your git diff to two or three models from different families, such as Claude, GPT and DeepSeek. Each reviews it independently, and a summary shows where they agree and where they differ.

  • Findings raised by two or more reviewers are listed first, as the ones most likely to be real.
  • Different verdicts are shown openly, for example when one model approves and another asks for changes.
  • Choose the reviewers with --reviewers, or add --council to a task to review its diff when it finishes.
cosvexa review
cosvexa review                 # uncommitted changes
cosvexa review --base main     # everything since main
cosvexa "add input validation" --council

You see the cost before it runs

Before any request, the CLI shows the estimated cost for each reviewer and for the summary, and asks you to confirm. The estimate is an upper bound; you are charged only for actual usage, and if you answer no nothing is charged. In our test, three models reviewing a small diff cost 0.15 credits (1 credit = $0.01).

Prefer OpenCode?

If you like OpenCode's full-screen interface, install it yourself and start it through cosvexa. It opens with Cosvexa as its provider, the tool-capable models listed and cosvexa-auto selected.

OpenCode
npm i -g opencode-ai
cosvexa opencode

Your key stays in the Cosvexa config. Council review and per-task credits are part of cosvexa itself, not OpenCode.

Requirements

  • Node.js 20 or newer, on Windows 10/11, macOS or Linux.
  • A Cosvexa API key (starts with cvx_).
  • git, for council review.
  • Commands run in PowerShell on Windows and in /bin/sh on macOS and Linux; COSVEXA_SHELL changes this.

API keys can be created on every plan; on Free they answer with Cosvexa-1, within 50 questions a day. See plans