Skip to main content

icod

A fast, native AI coding agent that lives in your terminal.

Tell icod what you want — it reads your code, plans the changes, edits the files, and runs the commands to get it done. Just you and the agent, in the terminal, on your project.


Features at a glance

  • Agent session — conversational session with full context of your project; keep going until the task is done
  • Whole-project awareness — reads, writes, edits, and searches across every file in your repo
  • Image context (new) — attach a screenshot, mockup, or diagram to your prompt via @path, drag-and-drop, or Alt+V clipboard paste; the agent sees it
  • Multi-provider — Anthropic Claude, OpenAI, Google Gemini, Groq, Mistral, OpenRouter, DeepSeek, xAI, Cohere — one tool, every major LLM
  • Model catalog with pricing — live vendor and model list from models.dev with per-token cost shown in the picker
  • Never lose work — every agent turn is checkpointed; /revert rolls back files, conversation, or both
  • Fast file search — ripgrep bundled inside the binary; no separate install needed
  • Hybrid code search (new) — the agent finds relevant code fast by fusing semantic (embeddings) and lexical (BM25) search, auto-indexed in the background. Lexical works offline with no key; semantic adds conceptual matching when an OpenAI key is set
  • Auto-approve by default — no per-action prompts slowing you down; opt into review with --no-auto
  • Session continuity — resume exactly where you left off with -c or --session
  • Workspace init — auto-generates an ICOD.md briefing for the agent on first use
  • Cost tracking — /cost and icod stats show token usage and USD spend per session and across all sessions
  • Permission rules — define allow/deny patterns in icod.json to tighten or relax what the agent can touch

Install

pip install icod

On first run, icod downloads and caches the native binary automatically.


Quickstart

Work on your current project

# Navigate to your project, then just run:
icod

icod uses your current working directory as the workspace by default. The agent can see, edit, and run everything inside it.

Point icod at a specific folder

icod --dir C:\repos\my-project

# Short form
icod -d C:\repos\my-project

That's all it takes — no config files required.

First-time setup

The very first time you run icod, it guides you through setup automatically:

  1. Pick a provider — an arrow-key menu lists every supported vendor:
      Provider
    
    ❯ Anthropic
      Google Gemini
      Groq
      Mistral
      OpenAI
      OpenRouter
      …
    
  2. Pick a model — the list for that vendor appears with live per-token pricing.
  3. Enter your API key — hidden prompt; saved once to ~/.icod/credentials.json.

From then on, icod drops straight into the agent session. No setup screen again.


Agent session

PS C:\repos\my-project> icod

  ▲  icōd.ai CLI  │ claude-sonnet-4-6
     session 01KT8G7WPBFC66GXH182843HT2  │  /help  │  ctrl-c

❯ what's in this codebase?
[agent reads the project, explains what it found]

❯ add input validation to the registration endpoint
[agent edits the relevant files]

❯ also write a test for it
[agent adds the test]

❯ /cost
  Total: $0.023   input 18,400   output 1,250

❯ ^C

The agent session keeps a live conversation thread with full project context. The agent remembers what it did in previous turns — just keep talking.

By default every tool call (read, write, shell command) is auto-approved. Pass --no-auto to confirm each action manually:

icod --no-auto

Attach an image as context

Show the agent a screenshot, mockup, or diagram and it reads the image as visual context for your prompt. Three ways, all inside the agent session:

  • @path — reference an image file inline (Tab-autocompletes):
    ❯ make the header match @./design/hero.png
    
  • Drag-and-drop — drag an image file into the terminal; its path is inserted for you.
  • Alt+V — paste an image straight from your clipboard (e.g. a screenshot you just took).

Each attached image becomes a clean [Image #N] token in your prompt:

❯ [Image #1] why doesn't this layout match on mobile?
  └ [Image #1]  hero.png

Supported formats: PNG, JPEG, GIF, WebP (up to 5 MB each). You can attach several at once.

Needs a vision-capable model. Image context works with models that accept images — Claude 3+, GPT-4o, Gemini, and similar. If your current model is text-only (e.g. some DeepSeek/Llama models), icod warns you at attach time so you can switch with /model.


Multi-provider support

Switch provider with the interactive command-line picker or pass flags directly:

# Interactive: arrow-key vendor → model → API key
icod provider

# Inline flags
icod --provider openai --model gpt-4o
icod --provider google --model gemini-1.5-pro
icod --provider groq   --model llama-3.3-70b-versatile
icod --provider mistral --model mistral-large-latest

# Switch mid-session (no restart needed)
# type inside the agent session:
/provider

Supported providers: Anthropic, OpenAI, Google Gemini, Groq, Mistral, OpenRouter, DeepSeek, xAI, Cohere — and any other backend litellm supports.

API keys are stored per-vendor in ~/.icod/credentials.json. Each vendor also reads from its standard environment variable as an override:

Vendor Environment variable
anthropic ANTHROPIC_API_KEY
openai OPENAI_API_KEY
google GEMINI_API_KEY
openrouter OPENROUTER_API_KEY
groq GROQ_API_KEY
mistral MISTRAL_API_KEY
deepseek DEEPSEEK_API_KEY
xai XAI_API_KEY
cohere COHERE_API_KEY

Revert agent changes

icod checkpoints your files before every turn. Use /revert inside the agent session to undo:

❯ refactor auth.py to use bcrypt
[agent edits auth.py]

❯ actually also add rate limiting
[agent edits 3 more files]

❯ /revert
↶ reverted to before "actually also add rate limiting"
  files restored, that turn dropped from the conversation
Command What it does
/revert Interactive two-step wizard: pick a checkpoint, pick what to restore
/revert <N> Undo back to turn N — files + conversation
/revert <N> code Restore only the files; leave the conversation intact
/revert <N> chat Drop only the conversation back to turn N; leave files as they are

Checkpoints are stored in ~/.icod/snapshots/ and never touch your project's git history. Requires git on your PATH — icod tells you if it isn't available.


Flags

Flag What it does
--dir <path> / -d <path> Workspace folder to use (default: current directory)
--provider <vendor> / -p <vendor> LLM vendor: anthropic, openai, google, groq, …
--model <name> / -m <name> Model to use: claude-opus-4-7, gpt-4o, gemini-1.5-pro, …
--no-auto Ask y/N before each tool call
--continue / -c Resume the most recent session in this folder
--session <id> / -s <id> Resume a specific session by ID
--file <path> / -f <path> Run a one-shot task from a file, then exit
--thinking Stream the model's reasoning steps inline
--no-init Skip ICOD.md auto-generation
--verbose / -v Debug logging — helpful for bug reports
--help Full flag list

Agent session commands

Command Purpose
@<path> · Alt+V Attach an image as context (or drag a file into the terminal)
/provider Switch provider and model for this session (arrow-key picker)
/model [name] Switch model inline — picker if no name given
/models List available models for the current provider with pricing
/revert [N] [code|chat] Undo a turn — files, conversation, or both
/cost Token usage and USD cost for this session
/new Start a fresh session (clears history)
/session Print the current session ID
/clear Clear the screen
/commands Full CLI usage reference
/help Show this command list
/exit / /quit Exit the session

Subcommands

Run these outside the agent session:

Command Purpose
icod provider Interactive vendor + model + key setup
icod login Save or overwrite an API key
icod logout Remove a stored API key
icod models Browse and set a default model
icod stats Token usage and cost across all sessions
icod session list Show all saved sessions
icod session delete <id> Delete a session
icod init Generate ICOD.md for the current workspace
icod index Build or refresh the semantic search index
icod config Show resolved configuration
icod version Print icod version

Session continuity

icod persists every session. Pick up right where you left off:

# Resume the most recent session in this folder
icod -c

# Resume a specific session by ID
icod --session 01KT8G7WPBFC66GXH182843HT2

# List all sessions
icod session list

Workspace configuration

Drop an icod.json (or .icod/config.json) in your project root to set project-level defaults:

{
  "model": "claude-opus-4-7",
  "provider": { "name": "anthropic" },
  "auto_approve": true,
  "permission_rules": [
    { "action": "deny", "tool": "bash", "pattern": "rm -rf" }
  ]
}

Global defaults live in ~/.icod/config.json and are overridden by the project config, which is in turn overridden by CLI flags.


Requirements

  • Windows x64 (macOS and Linux support planned)
  • Python 3.8+ — only needed for the pip launcher; the agent itself is a self-contained binary
  • git — optional, enables the /revert checkpoint system; icod works fine without it

Storage

Path Contents
~/.icod/bin/ Cached native binary
~/.icod/credentials.json API keys (one per vendor)
~/.icod/config.json Global provider / model defaults
~/.icod/snapshots/ Per-session revert checkpoints
.icod/ in each workspace Session database (SQLite)

Metadata

Release files for icod 0.1.4

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

Source distribution (sdist)

Source distribution for icod 0.1.4
File Size Uploaded Provenance Actions
icod-0.1.4.tar.gz 9.1 kB Without provenance Details for icod-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icod 0.1.4
File Interpreter ABI Platform Actions
icod-0.1.4-py3-none-any.whl Python 3 none any Details for icod-0.1.4-py3-none-any.whl

Total release size: 18.2 kB

Release files / icod-0.1.4.tar.gz

Download URL icod-0.1.4.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8851f2cc77b4504e1a7f5c05b15ee2e1b4b52683f1224c009046bb202082e9a1
BLAKE2b-256 checksum
How to use checksums
def7f73e5f66f9a4a3e2553edb2856debefacb6ce7933cbdcd508d17b2af0315
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / icod-0.1.4-py3-none-any.whl

Download URL icod-0.1.4-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18c26d631a0edb509ba20bc8f23bb3e044fef40799771d678d953b8b0cc2290a
BLAKE2b-256 checksum
How to use checksums
abc113a1ec0c282f7c56a1cd03cb5f3b08c439548cea18b8cba458d480db2903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for icod 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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