/odoo-agent-pro-kit:docker-sandbox-multi-cli-adapterfrom Odoo Agent Pro Kit
Manages multiple coding-agent CLIs (Codex, Claude, Hermes, Gemini) in Docker Sandbox sessions for Odoo development, including credential troubleshooting and agent switching.
Ships in Odoo Agent Pro Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill provides patterns for working with multiple coding-agent CLIs in Docker Sandbox sessions when developing Odoo modules. It addresses the challenge where one agent's credentials expire or become unavailable, requiring seamless switching to alternative agents while maintaining consistent workflows.
| Agent CLI | Status | Notes |
|---|---|---|
| Codex | Proven (Phase 8, real run) | Docker-managed proxy OAuth token can expire; fix is a host-level re-auth (see below), not a per-sandbox fix |
| Hermes CLI | Proven (Phase 8) | Works via odoo17/odoo18/odoo19-dev profiles; requires profile activation |
| Claude Code CLI | Tested, works, but painful | npm install -g claude-cli; no interactive /login in headless sandbox — must set ANTHROPIC_API_KEY env var (see below) |
| Gemini CLI | Tested, blocked | Pre-installed in sbx create gemini ... sandboxes; needs a real Google GOOGLE_API_KEY/GEMINI_API_KEY — there is no gemini auth login device flow in headless sandbox mode |
When Codex reports 401 unexpected status ... auth error code: token_expired
even right after a fresh sandbox restart, the fix is not inside the
sandbox. Run this on the outer Ubuntu KVM host (not inside any sbx exec):
sbx secret set openai --oauth
This prints a https://auth.openai.com/oauth/authorize?... URL with a
redirect_uri=http://localhost:1455/auth/callback. On a remote VPS, a
browser on your local machine cannot reach the VPS's own localhost:1455,
so completing the login in a browser on your laptop will silently fail the
callback. Fix: open an SSH local port-forward before starting the flow,
then open the printed URL in your local browser once the tunnel is up:
ssh -L 1455:localhost:1455 <user>@<vps-host>
# in that same (or a second) SSH session on the VPS:
sbx secret set openai --oauth
Verify with sbx secret ls — look for (global) service openai (oauth configured). This credential is global, so every sandbox created
after this point automatically inherits it ("Using stored OpenAI OAuth
credentials" appears in sbx create output) — no per-sandbox re-auth needed
for future modules/phases.
Stale sandboxes still hold the dead token in-container. Removing and recreating the sandbox after the host-level re-auth is required — an already-running sandbox does not pick up a newly-set host credential:
sbx rm --force <old-sandbox-name>
sbx create codex --name <new-sandbox-name> <workspace-path>
Verify the new sandbox actually works with a live round-trip, not just a status check:
sbx exec <sandbox> -- codex exec "say hello and tell me what model you are"
sbx create correct syntax (this is NOT docker create-style flags)sbx create <agent> --name <sandbox-name> <workspace-path>
<agent> is a positional subcommand (claude, codex, gemini,
copilot, cursor, docker-agent, droid, kiro, opencode, shell),
not a --agent flag. There is no --image, --workspace, or
--detached flag — sbx create --help lists the real flags
(--clone, --cpus, --memory, --name, -p/--publish, -t/--template,
etc.). The image is resolved automatically per-agent unless you override it
with -t/--template.
/login flow)Inside a sbx create claude ... sandbox, claude auth login /
claude /login are not available in headless/non-TTY mode. The working
path is to export ANTHROPIC_API_KEY before invoking claude:
sbx exec <sandbox> -- bash -lc 'ANTHROPIC_API_KEY=<key> claude auth status'
Writing to /etc/environment fails with Permission denied inside the
container (non-root user) — don't attempt it; just pass the env var inline
per-invocation, or export it in the shell session before calling claude.
claude -p "..." (headless prompt mode) does not accept
--approval-mode/--provider/--model the way Hermes CLI does — check
claude --help inside the actual sandbox before assuming Hermes-CLI-style
flags carry over; they don't.
gemini (pre-installed via sbx create gemini ...) requires a valid
generativelanguage.googleapis.com API key. There is no gemini auth login / device-code flow available inside a non-interactive sandbox
session — every attempt returned API key not valid. Treat Gemini CLI as
not currently viable for headless Docker Sandbox phases until a
working non-interactive Google auth path is confirmed; don't spend more
than one round re-verifying this without new information.
/plan-analysis, /start-coding, /testing) against the sandboxed Odoo instanceWhen an agent's credentials expire (common with OAuth-based agents like Codex):
sbx list, sbx exec <sandbox> -- ...)To run agent skills without manual interaction:
sbx exec <sandbox> -- which <agent>)Problem: agent login status may show "logged in" locally while upstream tokens are expired
Solution: Always test with a real command invocation; local status checks don't catch upstream token expiry
Problem: Context not properly handed off between agent switches Solution: Use the episodic context files (CLAUDE.md, GEMINI.md, AGENTS.md) written by the context handoff guard to maintain state across agent switches
Problem: Unclear whether agent ran inside sandbox VM or on outer host Solution: Always be explicit in evidence about where the agent process executed (inner VM vs outer host) and verify filesystem identity when claiming inner-VM execution
Problem: Documenting credential-specific fixes as general workflows Solution: Focus on the adapter pattern itself (ability to switch agents) rather than specific credential refresh procedures
Problem: Codex/agent output for /start-coding lands wherever the sandbox
workspace happens to bind-mount — for Docker Sandbox Phase 8 that is
odoo-agent-pro-kit (the pipeline tooling repo), not the actual VPCSCloud
Apps Store module repo (vpcs_apps_cloud_18, vpcs_apps_cloud_19, etc.).
If left as-is, the finished module gets committed into the wrong repository.
Solution: After a module is implemented and tested inside the sandbox,
sync the generated module directory back out to the canonical module-store
repo (vpcs_apps_cloud_<version>/<module>/) on the correct version branch,
merge any pre-existing commercial manifest fields (images, website,
price, currency, application) that a from-scratch agent regeneration
will otherwise drop, then remove the staging copy from the pipeline repo
before committing there. Only pipeline evidence/docs/skills belong in
odoo-agent-pro-kit; the module itself belongs in the module-store repo.
sandboxctl create "session already exists" with a corrupted sessionProblem: After recreating the outer sbx sandbox (e.g. to pick up a new
OAuth credential), an inner Compose session directory
(.sandbox/sessions/<session>/) can be left as an empty scaffold (missing
session.json) from the old sandbox lifecycle. sandboxctl create then
fails with session already exists, and sandboxctl status/destroy both
crash with FileNotFoundError: session.json.
Solution: rm -rf .sandbox/sessions/<session>/ to fully clear the stale
scaffold, then re-run sandboxctl create --version <v> --module sandbox_fixture --session <session>. This is safe — it only recreates the
inner Compose stack, not the outer sandbox or the bind-mounted repo.
Problem: An agent running inside the Docker Sandbox microVM may read
stale SESSION_CONTEXT.md instructions telling it to SSH to the
"validation host" — but the sandbox already is running on that host. This
caused a real false blocker where Codex looked for a local-Mac-only
credential file (.sandbox/validation-host.env) that is correctly absent
inside the sandbox, and refused to implement the module.
Solution: When prompting an agent that will execute inside the
sandbox, explicitly state "you are already running inside the target
environment; do not SSH anywhere; implement directly in this filesystem."
docs/docker-sandbox/tasks.md (Phase 8 section)plugin/context_guard.py and context_handoff_workflow.mddocs/docker-sandbox/phase-4/source /home/ubuntu/.hermes/hermes-agent/venv/bin/activateWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vperfectcs/odoo-agent-pro-kit --plugin odoo-agent-pro-kit31 skills in this plugin
/agent_browser_automationBrowser automation for Odoo web testing, form filling, screenshots, documentation, and frontend validation. Use when testing Odoo web pages, creating module screenshots, validating forms, or automating browser interactions for Odoo 17/18/19./odoo_commanding_systemSlash command router providing three lifecycle commands for Odoo custom app development: /plan-analysis (requirements & PRD generation), /start-coding (task-loop with backend testing), /testing (frontend UI testing & documentation). Version-aware (17|18|19), IDE/CLI agnostic. Works from VS Code, Antigravity, Cursor, or terminal./docker-sandbox-operationsConfigure, migrate, operate, validate, benchmark, upgrade, roll back, and release the Odoo 17/18/19 Docker Sandbox runtime. Use for Docker Sandbox onboarding, platform setup, local-to-sandbox migration, session lifecycle, release acceptance, capacity measurement, or troubleshooting in this repository./excalidraw-diagramCreate Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts./odoo_17_coding_standardOdoo 17.0 coding standards for models, views, security, constraints, and performance. Use when developing Odoo 17 modules to ensure maintainable, upgrade-safe code./odoo_17_dependency_contextCapture current Odoo 17.0 modules, customizations, and dependency trees. REQUIRES LIVE ODOO CONNECTION. This skill enables the Odoo 17 environment and MCP server to gather live data on installed modules, dependency graphs, and model extensions via XML-RPC. Use this to maintain context on the existing Odoo 17 setup, ensuring that new features or changes are consistent with the current architecture.Other plugins' skills for the same job