Step 1: Install the MeshAgent CLI
Choose the installation path that matches how you plan to work.Option 1: Install globally
Option 2: Install in a Python environment
If you are developing with the Python SDK, you can install the CLI in your project environment instead. If you need help setting up Python anduv, start with the Machine Setup Guide.
uv run instead of activating the environment first. For the full command reference, see MeshAgent CLI Commands.
Step 2: Connect the CLI to MeshAgent and activate a project
Authenticate in the browser and run the setup flow:bash
meshagent setup signs you in, or if you are already signed in lets you continue with the current account or switch accounts, then lets you choose or create a project and activates the project for the CLI. If Codex or Claude are installed, setup can also configure them to use MeshAgent for the active project, reuse or update existing MeshAgent integrations, or remove them when you want to switch back.
At the end of setup, the TUI asks whether you want to create a sample MeshAgent application. Choose that option when you want the guided sample app wizard. It opens the same scaffolding flow as meshagent create.
By default MeshAgent provides OpenAI and Anthropic access for the project through MeshAgent-managed routing. You do not need to add your own OpenAI or Anthropic keys first unless you want the project to use your own provider accounts.
Keep logins for multiple environments
Both the Rust and Python CLIs save profiles by API URL and user ID. You can stay logged in to.com and .life even when both accounts have the same ID or email:
auth switch lists the saved profiles or opens an
interactive picker in a terminal. Each entry shows its environment. Use
--api-url to disambiguate a shared ID or email. Switching restores that
environment’s session, active project, project API keys, and LLM proxy token.
Logging out clears only the selected profile’s session.
MESHAGENT_API_URL overrides the saved environment. When set, commands use the
saved profile for that URL and do not reuse another environment’s credentials.
Unset it to follow the environment selected by auth switch.
Existing ~/.meshagent/settings.json files upgrade automatically when the CLI
loads settings at startup. The upgrade preserves saved sessions and project
settings and uses each profile’s saved API URL. Older profiles without an API
URL belong to the default .com environment. Both CLIs read and write the same
upgraded format.
If setup or later CLI commands behave unexpectedly, run:
bash
meshagent doctor checks common local configuration issues. meshagent doctor --fix applies the fixes the doctor can safely make for you.
Step 3: Choose a starting path
You can start from a generated app or run a room-connected process directly.Option A: Scaffold a sample app
Usemeshagent create when you want a deployable sample application that already includes MeshAgent wiring for one of the supported SDKs and app patterns:
bash
bash
Option B: Run an agent with meshagent process
Use meshagent process when you want to start a room-connected agent directly from the CLI. Continue below to create a room, connect an agent identity, and optionally deploy it.
Create a room and mailbox
If you chose the meshagent process path, create the room you will use for this guide now. If you already created a room in the MeshAgent Studio or Powerboards UI, you can reuse it here:
bash
bash
meshagent process is the main CLI path for running a room-connected agent. This example starts one agent identity with all four primary channels:
chatmail:EMAILqueue:NAMEtoolkit:NAME
bash
Ctrl+C when you want to stop it.
Talk to the agent in MeshAgent Studio
- Open MeshAgent Studio.
- Join the
gettingstartedroom. - In the participants tab, select
my-first-agent. - Send it a message and ask it to do something that uses the tools you enabled.
bash
bash
my-first-agent@mail.meshagent.com.
Deploy the agent as a managed service
Running the agent locally is the fastest way to test it. When you want it to stay available without keeping your terminal open, deploy it as a service.
The fastest path is to deploy it directly from meshagent process:
bash
bash
bash
Next steps
- Process Agents Overview: learn how
meshagent processworks and how to shape rules, tools, channels, and threads - Powerboards: learn how end users can work with deployed and built-in agents
- Rooms: learn the room runtime and built-in room APIs
- Service YAML: write service manifests and configure permissions
- MeshAgent CLI Commands: browse the full CLI reference