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.
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