ConnectOnionConnectOnion
DocsCLIco ai

co ai

AI coding agent that works in your project. Start a web chat session or run one-shot prompts — with full access to your files, shell, and tools.

Quick Start: Run co ai in your project — it opens a web chat connected to a coding agent that can read and edit your files.

Two Modes

Web Chat (default)

co ai

Starts a local agent server, opens chat.openonion.ai in your browser. Chat conversationally — best for extended sessions.

One-Shot

co ai "your prompt"

Runs the prompt, prints the result, exits. Best for quick tasks and scripting.

Web Chat Mode

Run co ai in your project directory:

code
1co ai
Python REPL
Interactive
Starting AI coding agent...
Server running at http://localhost:8000
Opening chat.openonion.ai/0x7a9f3b2c...

What happens

1.Agent server starts on localhost:8000
2.Your browser opens chat.openonion.ai/{your-address}
3.The agent runs in your project directory with full tool access
4.Your identity comes from ~/.co/ — same across all sessions

One-Shot Mode

Pass a prompt directly — the agent runs, prints the result, and exits:

code
1co ai "Create a FastAPI hello world app"
Python REPL
Interactive
[agent] Creating FastAPI hello world app...
[agent] Writing main.py...
 
from fastapi import FastAPI
 
app = FastAPI()
 
@app.get("/")
def hello():
return {"message": "Hello World"}
 
Done! Run with: uvicorn main:app --reload
code
1# Fix a bug 2co ai "fix the failing test in tests/unit/test_agent.py" 3 4# Add a feature 5co ai "add rate limiting to the /api endpoint" 6 7# Refactor 8co ai "refactor agent.py to use the new event system" 9 10# Write tests 11co ai "write pytest tests for models/user.py"

Project Context

When started, the agent automatically loads context from your project — no setup required:

SourcePurpose
.co/OO.mdProject instructions (primary)
CLAUDE.mdClaude Code compatibility
README.mdProject overview
~/.claude/skills/User-defined skills
git statusCurrent branch, changes, recent commits

Give the agent persistent project rules with .co/OO.md:

code
1mkdir -p .co 2cat > .co/OO.md << 'EOF' 3Always run tests before committing. 4Use snake_case for function names. 5The main entry point is src/main.py. 6EOF

Loaded every session — the agent always follows your rules without being told.

Available Tools

File Operations

  • • Read, write, edit files
  • • Search with glob and grep

Shell

  • • Run bash commands
  • • Approval flow for destructive ops

Planning

  • • Enter plan mode, write plans
  • • Exit plan and implement

Tasks & Skills

  • • Background tasks, todo lists
  • • Load and run user-defined skills

Command Reference

OptionShortDefaultDescription
--port-p8000Web server port
--model-mco/claude-opus-4-5LLM model to use
--max-iterations-i100Max tool iterations per turn
code
1# Different port 2co ai --port 9000 3 4# Faster model 5co ai --model co/gemini-2.5-pro 6 7# One-shot with options 8co ai "build a microservice" --model co/gpt-4o --max-iterations 50

Enjoying ConnectOnion?

⭐ Star us on GitHub = ☕ Coffee chat with our founder. We love meeting builders.