Developers
Ask the agent, assign work or call services from your own applications.
CLI
Install Mu and connect to your account:
curl -fsSL https://raw.githubusercontent.com/micro/mu/main/install.sh | sh mu login https://micro.mu mu ask "What needs my attention?"
No model key is needed to use the hosted assistant. To continue a conversation, use mu ask --thread THREAD_ID "…". Add --raw for JSON.
mu work submit --prompt "Research the options and recommend one" mu work get --id WORK_ID mu inbox list mu tools mu help
Work runs in the background; use its returned ID to read progress and the result. Use mu help SERVICE METHOD to see how to call a service.
HTTP
Create a token and set it as MU_TOKEN. Choose Agents / Account for the agent, work and inbox; enable the permissions you need, including Allow actions to submit work.
curl 'https://micro.mu/agent' \
-H "Authorization: Bearer $MU_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"prompt":"What needs my attention?"}'
The response includes text and thread. Send thread with your next prompt to continue.
curl 'https://micro.mu/work' \
-H "Authorization: Bearer $MU_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"prompt":"Research the options and recommend one"}'
curl 'https://micro.mu/work/WORK_ID' \
-H "Authorization: Bearer $MU_TOKEN" \
-H 'Accept: application/json'
Submission returns an id. Reading it returns work.status and work.result. Agent replies and work use your account's credits.
| Resource | Use |
|---|---|
POST /agent | Ask Micro with a prompt and optional thread. |
POST /agent/NAME | Ask a specific agent. |
GET /agents | List your agents. |
POST /work | Assign a prompt, with an optional agent and thread. |
GET /work | List your work. |
GET /work/WORK_ID | Read progress and results. |
GET /inbox/THREAD_ID | Read a conversation. |
Services and tools
Call services directly with a Services token. The API reference lists HTTP endpoints, parameters and examples. The Tools page lists MCP tools and connection instructions for your own agent. In the CLI, use mu tools to discover them and mu SERVICE METHOD --argument value to call one.
Pay per call
x402 lets your applications pay for public service calls with USDC. See the payment and connection details there.
Self-hosting
The same CLI works with your own server: mu login https://your-server.example. See the installation guide, documentation and source code.