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 | bashThe binary installs as mc, with monkeyscode as an alias. Then run mc auth login.
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.
Interactive
interactive REPL
Headless
headless
Piped
pipe mode
Background
cloud job → PR
mc "refactor the auth module" # interactive REPLmc -p "fix all lint errors" --headless --auto-approve # headlessecho "explain this error" | mc # pipe modemc -p "write tests" --background --auto-branch --auto-pr # cloud job → PR
You always know what the agent is allowed to do.
- ManualdefaultAsks before running commands.
- Accept editsApplies edits, and asks before running commands.
- AutoRuns edits and commands, but still asks before destructive commands, anything outside the workspace, or shell it can’t verify.
- PlanRead-only. The agent investigates and proposes; nothing changes until you approve.
- BypassNever asks, except for plugin programs.
[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.
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
| Linux | bubblewrap |
| macOS | sandbox-exec |
| Anywhere | Docker |
Network policy
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.
- uses: MonkeysCloud/monkeyscode/apps/cli@mainwith:api-key: ${{ secrets.MONKEYSCODE_API_KEY }}max-cost: '1'
Exit codes
0ok2bad flags3auth4quota5cost / token limit6only denials124timeoutOutput 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.
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.
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 runningteam-abc123 · 3 agentsmc team merge team-abc123
Moving from Claude Code or Cursor takes one command.
mc import claude
.claude/.mc import cursor
.cursor/rules, .cursorrules and .cursor/mcp.json..monkeyscode/
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 browse # curated MCP serversmc mcp add <id>mc plugin search reviewmc plugin install <name>✓ verified against signing pinsmc plugin update --all
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 MarketplaceOne plugin format
across the IDE, Code Agent and CLI
- 1Checked against signed metadata and a pinned root
- 2Preview files and requested capabilities
- 3Enable only after you review
- 4Same permission rules as built-in tools
Built for living in the terminal.
Notifications
Turn footer
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
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.
Want a desktop app for long runs? Code Agent Prefer an editor? IDE