-
meshagent setup: Can be used to configure Codex or Claude to use MeshAgent by default, best when you want persistent local configuration changes. -
meshagent launch codexormeshagent launch claude: For when you want a one-off session through MeshAgent without changing your normal default configuration.
meshagent setup
Start with:
meshagent setup is the guided, persistent setup flow. It can:
- Sign you in or reuse your existing session.
- Let you choose or create a project and activate it.
- Create and activate a project API key if needed.
- Check whether your account can use the LLM Proxy for that project.
- Offer to configure supported Codex or Claude installations found on your machine.
What meshagent setup changes for Codex
For Codex, setup can configure, update, or remove MeshAgent as the default provider in ~/.codex/config.toml.
After setup:
- Run
codexnormally to use Codex through the active MeshAgent project. - Rerun
meshagent setupto update the MeshAgent Codex default or reset Codex back to OpenAI.
What meshagent setup changes for Claude
For Claude, setup can create, update, or remove MeshAgent-managed settings in ~/.claude/settings.json.
After that, run claude normally and it uses the configured MeshAgent project.
meshagent launch commands
Use these commands for a one-off Codex or Claude session through MeshAgent. They work whether or not MeshAgent is configured as your default.
meshagent launch codexlaunchescodexwith temporary Meshagent settings and environment for that process.meshagent launch claudelaunchesclaudewith temporary MeshAgent settings and environment for that process.
--project-id before any forwarded tool arguments.
Forwarding tool arguments
meshagent launch codex and meshagent launch claude have their own MeshAgent options:
--project-id--api-url
--.
For example:
app is a forwarded Codex subcommand that can be used to launch the Codex Desktop app.
Desktop apps
Codex Desktop is supported today through the same Codex configuration thatmeshagent setup manages.
To launch Codex Desktop through MeshAgent for a one-off session, use:
meshagent setup.
Claude Desktop automatic support is coming soon, so this page does not document a Claude Desktop launch command yet.
Switch Back To Your Regular Provider Setup
If you only usedmeshagent launch codex or meshagent launch claude, there is nothing to undo. Those commands only affect that launch.
If you changed persistent local configuration:
- For Codex, rerun
meshagent setupand choose the option to remove the MeshAgent Codex configuration. This resets Codex to OpenAI as the default provider. - For Claude, rerun
meshagent setupand choose the option to remove the MeshAgent Claude configuration.
meshagent setup so MeshAgent can detect and configure them.