Skip to content
MonkeysCode CLI

The agent in your terminal. And in your CI.

One command to install. The same engine as the IDE and Code Agent, with five permission modes, sandboxed execution, and headless runs with real exit codes.

curl -fsSL https://monkeyscode.com/cli/install.sh | bash

The binary installs as mc, with monkeyscode as an alias. Then run mc auth login.

Read the CLI docs
Four ways to run it

Interactive, headless, piped or in the background.

Start a conversation in the REPL, script it, pipe into it, or hand it off as a cloud job that comes back as a pull request.

01

Interactive

interactive REPL

02

Headless

headless

03

Piped

pipe mode

04

Background

cloud job → PR

mc — zsh
mc "refactor the auth module" # interactive REPL
mc -p "fix all lint errors" --headless --auto-approve # headless
echo "explain this error" | mc # pipe mode
mc -p "write tests" --background --auto-branch --auto-pr # cloud job → PR
Five modes, always visible

You always know what the agent is allowed to do.

  1. ManualdefaultAsks before running commands.
  2. Accept editsApplies edits, and asks before running commands.
  3. AutoRuns edits and commands, but still asks before destructive commands, anything outside the workspace, or shell it can’t verify.
  4. PlanRead-only. The agent investigates and proposes; nothing changes until you approve.
  5. BypassNever asks, except for plugin programs.
mc
[Auto] › add rate limiting to uploads
✓ edited src/middleware/rateLimit.ts
? rm -rf ./tmp/uploads — destructive, approve? [y/N]
⇧Tab → Plan · Bypass · Manual · Accept edits

Always on screen. The footer names the current mode, and the plain REPL shows it on the prompt ([Auto] ›).

Shift+Tab cycles through the modes. /mode opens a picker.

Sandboxed by default where it can be

Real isolation, or an honest “unavailable”.

Best provider, picked automatically. bubblewrap on Linux, sandbox-exec on macOS, and Docker anywhere.

Network policy can be set to none, local or full.

It tests itself first. If the sandbox blocks something the agent needed, run_command says so instead of retrying blindly.

No restart. /sandbox on|off applies from the next prompt.

On Windows, --sandbox uses Docker.

Providers, best available first

Linuxbubblewrap
macOSsandbox-exec
AnywhereDocker

Network policy

nonelocalfull
Built for CI

Headless runs with exit codes you can script against.

A GitHub Action, plus ready-made workflows. Each workflow limits what the agent may run, never pushes, and skips fork runs that would expose your key.

.github/workflows/monkeyscode.yml
- uses: MonkeysCloud/monkeyscode/apps/cli@main
with:
api-key: ${{ secrets.MONKEYSCODE_API_KEY }}
max-cost: '1'

Exit codes

0ok2bad flags3auth4quota5cost / token limit6only denials124timeout

Output formats: text, json and stream-json.

PR review

Review every pull request and upload findings as SARIF.

@monkeyscode mentions

Mention the agent in an issue or PR comment to put it to work.

Fix failing CI

Turn a red build into a pull request with the fix.

Issue → draft PR

Turn an issue into a draft pull request.

Nightly dependency updates

Update dependencies on a schedule and open a PR.

Use restricted keys in CI. Give each workflow its own key with a spend cap and a model allowlist.
Teams of agents

One prompt per agent, one worktree each.

Split a feature into independent prompts and run them side by side. Each agent works in its own git worktree, so they never step on each other, and you merge the team when it's done.

spawnstatusmerge
mc team
mc team spawn "Implement auth" "Implement payments" "Implement email" --max-agents 3
● agent-1 worktree/auth running
● agent-2 worktree/payments running
● agent-3 worktree/email running
team-abc123 · 3 agents
mc team merge team-abc123
Bring your setup

Moving from Claude Code or Cursor takes one command.

mc import claude

Brings over commands, agents, skills, hooks and MCP from .claude/.

mc import cursor

Brings over .cursor/rules, .cursorrules and .cursor/mcp.json.

.monkeyscode/

Workspace commands, subagents and skills live here, and hooks are Claude-compatible.
Extend it

MCP servers and signed plugins.

Curated MCP. mc mcp browse lists curated MCP servers, and mc mcp add <id> adds one. MCP tools follow the same permission rules as built-in tools.

Plugins from the shell. mc plugin search, mc plugin install and mc plugin update --all.

Inside the REPL, /plugins browse works too.

mc mcp
mc mcp browse # curated MCP servers
mc mcp add <id>
mc plugin search review
mc plugin install <name>
✓ verified against signing pins
mc plugin update --all
Plugins

Plugins, verified before they run.

Install skills, commands, agents, hooks, MCP servers and rules from the shell or the REPL.

Verified installs. Installs are verified against signing pins, and any expanded capabilities need review before they're enabled.

Same rules as built-in tools. Plugin content runs under the permission mode you chose.

One plugin format across the IDE, Code Agent and CLI.

Browse the Marketplace

One plugin format

across the IDE, Code Agent and CLI

SkillsCommandsAgentsHooksMCP serversRules
  1. 1Checked against signed metadata and a pinned root
  2. 2Preview files and requested capabilities
  3. 3Enable only after you review
  4. 4Same permission rules as built-in tools
Small things that matter

Built for living in the terminal.

Notifications

OS notifications when a task finishes, fails, or needs you. In SSH sessions, the terminal bell flags the tab instead.

Turn footer

Time, tokens, cost and files changed, after every turn.

Memory

mc memory for project conventions, and mc dream to consolidate session history into memory.

Doctor

mc doctor checks auth, settings layers and invalid rules.

Shell completions

For bash, zsh, fish and pwsh.

Runs Auto mode, Capuchin, Claude, ChatGPT, or your own model. How Auto mode works

See the available models with mc models list.

Install in one line.
Start free with Capuchin.

Try Capuchin free, no card. The CLI is included in every plan, with the same engine as the IDE and Code Agent.

See plans

Want a desktop app for long runs? Code Agent Prefer an editor? IDE