We just shipped three things that make Agentbot a complete AI agent infrastructure platform: a TypeScript SDK, an MCP server, and real x402 micropayment integration. All MiMo-native. All open source.
1. @agentbot/sdk
A TypeScript SDK for building on Agentbot. Install it, connect, and you have full access to MiMo inference, agent management, and x402 payments.
npm install @agentbot/sdk
import { AgentbotClient } from '@agentbot/sdk'
const client = new AgentbotClient({
baseUrl: 'https://agentbot.sh',
apiKey: 'your-api-key',
})
// Chat with MiMo V2.5 Pro
const response = await client.chat({
messages: [{ role: 'user', content: 'Hello' }],
model: 'mimo-v2.5-pro',
})
// List available models
const models = await client.models()
// x402 micropayment
const result = await client.x402Pay({
url: 'https://agentbot.sh/v1/x402/chat/completions',
method: 'POST',
body: { messages: [{ role: 'user', content: 'Hi' }] },
})The SDK includes full TypeScript types for everything — ChatMessage, ChatResponse, Model, Agent, and more. No guessing. No any types. Just autocomplete.
client.tsAgentbotClient — chat, models, agents, health, x402Pay
types.tsFull TypeScript types for all API responses
x402.tsx402 payment helpers — discover, pay, check balance
mcp.tsMCP client — activate, deactivate, callTool
2. MCP Server
A standalone MCP (Model Context Protocol) server that exposes MiMo inference, model discovery, x402 payments, and health checks as tools that any MCP-compatible client can use.
# Install globally
npm install -g agentbot-mcp
# Run with MiMo key
MIMO_API_KEY=tp-ebz…3ou6 agentbot-mcp
# Or use with Claude Desktop / Cursor
# Add to your MCP config:
{
"mcpServers": {
"agentbot": {
"command": "npx",
"args": ["agentbot-mcp"],
"env": {
"MIMO_API_KEY": "tp-ebz…3ou6"
}
}
}
}Four tools, zero config:
chatSend chat completions to MiMo V2.5 Pro. 1M context, reasoning.
list_modelsDiscover available MiMo models and capabilities.
x402_discoverSearch Agentic Market for paid services. Filter by category.
healthCheck Agentbot platform health — main, gateway, models.
The MCP server runs on stdio — standard input/output. No HTTP server. No ports. Just pipe it into any MCP client and you have MiMo inference.
3. x402 Micropayments
Every /v1/chat/completions request now supports dual authentication: API key (existing users) or x402 payment signature (Agentic Market buyers).
# No API key? Here's your 402:
curl https://agentbot.sh/v1/chat/completions
# Response: 402 Payment Required
# Header: PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6Mi...
# Decoded:
{
"x402Version": 2,
"accepts": [{
"scheme": "exact",
"network": "eip155:8453",
"maxAmountRequired": "1000", // $0.001 USDC
"payTo": "0x451cE4B37ad54BcFCD49b8a4140C17315358EDa5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}]
}Pay $0.001 USDC on Base, get MiMo V2.5 Pro inference. No account needed. No subscription. Just a wallet and a signature.
We're indexed on Agentic Market — search for "Agentbot" and you'll find our inference endpoint alongside Claude, ChatGPT, and Groq. But 99% cheaper.
4. Real Tool Execution
The MCP framework now executes real tools — not mocks:
websearch.searchBrave Search API with DuckDuckGo fallback
websearch.fetch_pageFetch URL, strip HTML, extract content
context7.get_docsContext7 API with GitHub README fallback
grep_app.search_codeGitHub code search with rate-limit handling
x402.discover_servicesAgentic Market API — search paid services
x402.call_paid_endpointFull x402 flow — 402 → sign → settle
x402.check_balanceUSDC balance on Base via on-chain call
Skills can register custom handlers at runtime. The MCP manager handles activation, deactivation, idle timeouts (5 minutes), and capacity limits (10 concurrent MCPs).
The Full Stack
┌─────────────────────────────────────────────┐ │ @agentbot/sdk │ │ TypeScript client for everything below │ ├─────────────────────────────────────────────┤ │ Agentbot MCP Server │ │ MiMo tools via Model Context Protocol │ ├─────────────────────────────────────────────┤ │ x402 Payment Protocol │ │ USDC micropayments on Base │ ├─────────────────────────────────────────────┤ │ Vercel Gateway (MiMo direct) │ │ OpenAI-compat API, zero middleman │ ├─────────────────────────────────────────────┤ │ Xiaomi MiMo V2.5 Pro │ │ 1M context, reasoning, 99% cheaper │ └─────────────────────────────────────────────┘
SDK → MCP → x402 → Gateway → MiMo. Five layers. All open source. All MiMo-native.
Get Started
Written by the Agentbot team. Powered by MiMo. Built on OpenClaw.