Skip to content

AI Agents ​

This page shows how to start YOLO mode for Claude Code, Gemini, Codex and OpenCode with one command, and what each one needs configured. YOLO mode skips permission prompts, so use it only inside a container; see Security.

Quick Reference ​

AgentShortcut (-y)Command actually runResume (after --)
Claude Codec / cc / claudeIS_SANDBOX=1 claude --dangerously-skip-permissions-r (pick) or -c (most recent)
Geminigm / g / geminigemini --yolo-r
Codexcx / codexcodex --dangerously-bypass-approvals-and-sandboxresume (resume --last for the most recent)
OpenCodeoc / opencodeOPENCODE_PERMISSION='{"*":"allow"}' opencode-c

Common usage:

bash
manyoyo run -y c                    # New container and start (Claude Code as example)
manyoyo run -n my-session -y c      # Named container
manyoyo run -n my-session -- -c     # Back to an existing container, pass the resume argument to the agent

Add one entry per agent under runs.<name> in ~/.manyoyo/manyoyo.json, then just run manyoyo run -r <name>. envFile must be an absolute path and env is an object. Keep keys in env files, not in the config.

json5
{
    "runs": {
        "claude":   { "yolo": "c",  "envFile": ["/abs/path/anthropic_claudecode.env"] },
        "gemini":   { "yolo": "gm", "envFile": ["/abs/path/gemini.env"] },
        "codex":    { "yolo": "cx", "envFile": ["/abs/path/openai_codex.env"] },
        "opencode": { "yolo": "oc", "envFile": ["/abs/path/opencode.env"] }
    }
}

manyoyo init all generates these entries in one go. The official common image includes Claude Code and Codex; Gemini and OpenCode need a full image you build yourself: manyoyo build --iv 2.3.1-full --iba TOOL=full.

Claude Code ​

bash
manyoyo run -r claude
manyoyo run -n <container> -- -c      # Continue the most recent session

When you use Claude Code in a terminal, it rings the bell when a task finishes (not in the web UI). Only images from 2.3.0 on include this; recreate old containers.

In the wizard's "Compatible service" step, Claude Code can pick DeepSeek, Zhipu, Kimi, Alibaba Bailian, Tencent Cloud, Volcengine Ark, MiniMax and more in one click; the Base URL is filled in for you (with a link to the official guide). Codex can pick DeepSeek, Zhipu, Kimi, Volcengine Ark and MiniMax (their Responses endpoints), and Codex with a compatible service must have a model name. Afterwards keep adding, editing and testing under "System settings → Model services" in the web UI; see Use Chinese Model Providers.

Environment variables (anthropic_claudecode.env):

bash
export ANTHROPIC_BASE_URL="https://api.anthropic.com"
export ANTHROPIC_AUTH_TOKEN="sk-xxxxxxxx"
export ANTHROPIC_MODEL="claude-sonnet-4-5"    # optional

Gemini ​

bash
manyoyo run -r gemini
manyoyo run -n <container> -- -r

Environment variables (gemini.env):

bash
export GEMINI_API_KEY="your-api-key"
export GEMINI_MODEL="gemini-2.0-flash-exp"    # optional

Codex ​

bash
manyoyo run -r codex
manyoyo run -n <container> -- resume --last
manyoyo run -n <container> -- resume <session-id>

To use account login instead of a key, mount the host login file into the container (in runs.codex):

json5
"volumes": ["/Users/<you>/.codex/auth.json:/root/.codex/auth.json"]

Environment variables (openai_codex.env):

bash
export OPENAI_BASE_URL=https://chatgpt.com/backend-api/codex

OpenCode ​

bash
manyoyo run -r opencode
manyoyo run -n <container> -- -c

Environment variables (opencode.env):

bash
export OPENAI_API_KEY="your-api-key"
export OPENAI_BASE_URL="https://api.openai.com/v1"

Common Pitfalls ​

  • Agent says not logged in or authentication failed: run manyoyo config show -r <name> to confirm envFile took effect, then manyoyo run -r <name> -x 'env | grep -E "ANTHROPIC|OPENAI|GEMINI"' to see whether the variables reached the container. After editing an env file, recreate the container with manyoyo rm <container>.
  • Resume shows nothing: sessions live in the container and cannot be resumed after manyoyo rm; also check you used the resume argument for that agent from the table above.
  • Want another agent in the same container: manyoyo run -n <container> -x /bin/bash, then run the full command from the table; simpler is one container per agent (for example -n proj-claude, -n proj-codex).
  • Command not found: manyoyo run -x which claude (or gemini / codex / opencode) to confirm the image has the agent; Gemini and OpenCode need a full image you build yourself (see above).

Next Steps ​

Released under the MIT License.