Skip to main content

What is an agent?

An agent is a configured Claude CLI instance with a specific role and set of tools. When you run an agent, muxAI spawns a claude process with the model, system prompt, MCP tools, and environment variables you defined. Agents are stored in the database and can be run on demand, on a schedule, or as part of a team.

Anatomy of an agent

Every agent has these core properties:

Turns

A turn is one cycle of the agent thinking, calling tools, and receiving results. Each tool call and its response counts as one turn. If a tool call fails (wrong argument, network error, etc.), the agent reads the error and retries on the next turn. This self-correction is useful but consumes turns.
Set maxTurnsPerRun high enough for the agent to complete its work plus recover from errors. Reporters typically need 10-15 turns. Lead agents that orchestrate a team need 25-30.

Creating agents

There are three ways to create an agent:
1

From a template

Pick a pre-built template (News Analyst, Technical Analyst, Data Analyst, or Team Lead) on the New Agent page. Templates pre-fill the role, model, SKILL.md, and MCP settings.
2

From scratch

Start with a blank agent and configure everything manually. Useful for custom roles outside the built-in templates.
3

Via team deploy

Use Deploy Team to create a full team (lead + reporters) in one shot from a blueprint. See Teams for details.

Agent lifecycle

An agent moves through these statuses:

Scheduling

Agents can run on a cron schedule. Configure this on the agent form with presets (every 15 min, hourly, daily) or a custom cron expression. Scheduled agents are picked up automatically on API startup.

Wallets

Every agent gets a Solana and Base/EVM wallet on creation. These are used for x402 payments (agents can pay for API access autonomously) and are AES-GCM encrypted in the database. View balances and export keys from the agent detail page.