CLI
mc, the terminal coding agent: interactive sessions, headless runs for scripts and CI, permissions, settings and extensions.
- CLI overviewInstall mc, sign in, and run the agent in your terminal, in a script, or in the cloud.
- AuthenticationSign in with your browser or email, use an API key in CI, and switch between accounts with profiles.
- Interactive sessionsWork with the agent in your terminal: slash commands, modes, effort, resuming sessions, and undoing changes.
- Headless modemc -p for scripts: output formats, exit codes, cost and token limits, permissions without a human, and multi-turn over stdin.
- CI and GitHub ActionsRun the agent in GitHub Actions or any CI with a restricted key: the action, ready-made workflows, and what the agent can't do.
- PermissionsWhat the agent may do without asking: modes, allow/ask/deny rules, the order they're checked in, and what always asks.
- CommandsEvery mc subcommand, grouped by what it's for. Run mc <command> --help for its options.
- ConfigurationSettings files and their order, mc config, environment variables, models, your own provider keys or local model, and proxied networks.
- Extending the CLIProject rules and memory, custom commands, subagents, skills, hooks, MCP servers, plugins, and importing from Claude Code or Cursor.
- TroubleshootingFix the common problems: not signed in, plan limits, refused tool calls, corporate proxies, and a stuck or hanging run.