-
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 create, update, or remove a MeshAgent profile in ~/.codex/config.toml, and optionally make that profile the default.
After setup:
- If the MeshAgent profile is the default, run
codex. - If the MeshAgent profile exists but is not the default, run
codex -p meshagent
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 codexbuilds a temporary Codex profile for that process and launchescodexwith it.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, use your normal Codex profile with
codex -p <your-profile>, or rerunmeshagent setupand stop using the MeshAgent profile as default or remove it entirely. - For Claude, rerun
meshagent setupand choose the option to remove the MeshAgent Claude configuration.
meshagent setup so MeshAgent can detect and configure them.