| 1 | # ViMax with Codex and Claude Code |
| 2 | |
| 3 | Connect ViMax to Codex or Claude Code on Linux or macOS with Python 3.12 or newer. |
| 4 | |
| 5 | ## Install |
| 6 | |
| 7 | From the ViMax checkout: |
| 8 | |
| 9 | ```bash |
| 10 | uv tool install ".[mcp]" |
| 11 | ``` |
| 12 | |
| 13 | Run `vimax init` in your workspace and configure your model providers in `configs/agent.local.yaml`. |
| 14 | |
| 15 | ## Connect with MCP |
| 16 | |
| 17 | Replace `/path/to/workspace` with the workspace you initialized: |
| 18 | |
| 19 | ```bash |
| 20 | codex mcp add vimax -- vimax mcp --workspace /path/to/workspace |
| 21 | claude mcp add --transport stdio vimax -- vimax mcp --workspace /path/to/workspace |
| 22 | ``` |
| 23 | |
| 24 | If the client cannot find `vimax`, use the absolute path returned by `command -v vimax`. |
| 25 | |
| 26 | ## Or load the plugin |
| 27 | |
| 28 | - **Codex:** install ViMax from the repository marketplace in the Plugins directory. From the repository root, the CLI equivalent is `codex plugin marketplace add "$PWD"`, then `codex plugin add vimax@vimax-local`. Start a new session after installing. |
| 29 | - **Claude Code:** run `claude --plugin-dir /path/to/ViMax/integrations/vimax` from your ViMax workspace. |
| 30 | |
| 31 | The plugin uses the current directory by default. Set `VIMAX_WORKSPACE_ROOT` before launching the client to use another workspace. |
| 32 | |
| 33 | ## Use the tools |
| 34 | |
| 35 | - `vimax_plan` generates storyboards in a new project from a confirmed idea, script, or novel excerpt. |
| 36 | - `vimax_render` renders an existing ViMax session. Confirm rendering separately, even if planning was already approved. |
| 37 | - `vimax_status` returns a job's progress, session ID, result, and available artifact paths. You can also look up artifacts directly by session ID. |
| 38 | - `vimax_agent` delegates one turn to ViMax to discuss ideas, draft a script, or review project documents. Pass the session ID to use an existing project and include any context needed for that turn. |
| 39 | |
| 40 | Jobs run in the background and continue if the client disconnects. Use the returned job ID to check the result. Each workspace runs one MCP job at a time. |
| 41 |