Skip to main content
cyclops code

A coding agent for your terminal. Any model.


Install | Usage | Docs | Tools | MCP | Config


PyPI Python 3.10+ License: MIT


cyclops code is an AI coding agent that runs in your terminal. It reads and edits files, runs shell commands, searches codebases, and fetches web content. Any model. It works with every model LiteLLM supports: Claude, GPT-4o, Gemini, Llama via Ollama, and 100+ more.

Install

uv tool install cyclops-code

Development (local):

git clone https://github.com/gopaljigaur/cyclops-code
cd cyclops-code
uv sync
uv add --editable ../cyclops  # optional: use local cyclops-ai
uv run cyclops

Usage

Start the interactive REPL:

cyclops

Run a one-shot query from the command line:

cyclops "fix the type errors in src/auth.py"
cyclops "add tests for the payment module"
cyclops --model anthropic/claude-opus-4-5 "refactor the database layer"

Options:

-m, --model TEXT       Model to use (overrides config)
--stream/--no-stream   Toggle streaming output
--cwd TEXT             Working directory (default: current dir)

Run shell commands directly in the REPL with !:

❯ ! git log --oneline -5
❯ ! npm test

REPL

The REPL keeps conversation history across turns. The model can call tools, you can review and approve each one, and the session can be saved and resumed.

Keyboard shortcuts

Key Action
Enter Submit message
Alt+Enter Insert newline
Shift+Tab Toggle auto / review approval mode
Ctrl+O Expand / collapse tool output
Ctrl+C Cancel current generation
Ctrl+C twice Exit
Ctrl+D Exit (on empty input)

Slash commands

Command Description
/help List all commands
/clear Wipe history and clear screen
/compact Summarize history via LLM to save context
/model [name] Switch model interactively or by name
/mode Toggle auto / review tool approval
/mcp Manage MCP servers
/save [name] Save session to disk
/load <name> Load a saved session
/sessions List saved sessions
/cost Show token usage and estimated cost
/exit Quit

Tool approval

In review mode (default), each tool call shows an interactive picker before executing:

  ▶ Bash  rm -rf dist/

  ❯ Yes
    No
    Yes to all

Switch to auto mode with /mode or Shift+Tab to approve all tools automatically.

Tools

Tool Description
Read Read file contents with line numbers
Write Create or overwrite a file
Edit Replace exact text in a file (old string must match exactly once)
Bash Run shell commands
Glob Find files by glob pattern
Grep Search file contents by regex
WebFetch Fetch a URL as plain text
Plan Write a step-by-step plan before starting a multi-step task
PlanUpdate Mark a plan step as todo, in_progress, or done

MCP

Connect any MCP server as an additional tool source. Tools from connected servers appear alongside the built-in tools.

Add a server (persisted to config):

cyclops mcp add filesystem npx -- -y @modelcontextprotocol/server-filesystem .
cyclops mcp add github npx -- -y @modelcontextprotocol/server-github
cyclops mcp list
cyclops mcp remove filesystem

Manage servers from inside the REPL:

❯ /mcp list
❯ /mcp add search npx -- -y @modelcontextprotocol/server-brave-search
❯ /mcp connect search
❯ /mcp disconnect search
❯ /mcp remove search

Config

Config is stored at ~/.cyclops/config.json:

{
  "model": "anthropic/claude-haiku-4-5-20251001",
  "stream": true,
  "max_iterations": 15,
  "temperature": 0.2,
  "mcp_servers": [
    {
      "name": "filesystem",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
      "env": {}
    }
  ]
}

Sessions are saved to ~/.cyclops/sessions/. Command history is at ~/.cyclops/history.

Models

Set the API key for your provider, then pass the model string:

# Anthropic
ANTHROPIC_API_KEY=... cyclops --model anthropic/claude-opus-4-5

# OpenAI
OPENAI_API_KEY=... cyclops --model gpt-4o

# Groq (fast, free tier available)
GROQ_API_KEY=... cyclops --model groq/llama-3.3-70b-versatile

# Google
GEMINI_API_KEY=... cyclops --model gemini/gemini-2.0-flash

# Ollama (local, no key needed)
cyclops --model ollama/qwen2.5-coder:7b

Use /model in the REPL to switch interactively with autocomplete and filtering.

License

MIT

Release files for cyclops-code 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyclops-code 0.1.1
File Size Uploaded
cyclops_code-0.1.1.tar.gz 257.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cyclops-code 0.1.1
File Interpreter ABI Platform
cyclops_code-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 282.9 kB

Release files / cyclops_code-0.1.1.tar.gz

Download URL cyclops_code-0.1.1.tar.gz
Size 257.3 kB
Tags Source
SHA-256 checksum
How to use checksums
90bb2df50d6aea4c85600ebb70b571e4a4a12564c44d082db30881290f2b3ba7
BLAKE2b-256 checksum
How to use checksums
cdeab9de280405b65595b650f5bc73657987a56e6aaa2ae6769111b8c8244630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / cyclops_code-0.1.1-py3-none-any.whl

Download URL cyclops_code-0.1.1-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4037dbd0dd10175a689fdc57709f38fe90a9f3706d3cd01792baac33062df25
BLAKE2b-256 checksum
How to use checksums
5a09d5f4655ce58ec97974cc42c359bbd99f03ebe094e4b1fbfe1dbdafcca455
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page