llms.txt Content
# CodeSpar
> The agentic operating system for money movement in Latin America. Commerce is the wedge; money movement is the platform.
## What is CodeSpar?
CodeSpar is the runtime that lets AI agents move money across Latin America: commerce checkout, procurement, payroll, treasury and cross-border, over the rails the region actually uses (Pix, boleto, NF-e, WhatsApp, SPEI). One SDK and one MCP server give an agent payments, invoicing, shipping, notifications and ERP reconciliation, governed by signed mandates and an immutable audit ledger, without integrating dozens of regional APIs.
## Install in your AI agent (MCP)
Give any AI agent a Latin-American commerce rail in one step — add the codespar MCP server. No code:
- Command: `npx -y @codespar/mcp serve`
- Env var: `CODESPAR_API_KEY` = your key (`csk_test_…` for the sandbox, `csk_live_…` for production)
- Tools exposed, by side: BUY (the agent spends under a signed mandate): codespar_shop, codespar_wallet, codespar_pay, codespar_crypto_pay, codespar_issue · SELL (the agent collects as merchant): codespar_checkout, codespar_charge, codespar_invoice, codespar_ship, codespar_notify, codespar_kyc · SHARED: codespar_ledger, codespar_discover, codespar_manage_connections
- Buyer-agent quickstart (MCP-first, no code): https://docs.codespar.dev/docs/quickstart-buyer
Per-host install (full guide: https://codespar.dev/agents):
- Claude Code: `claude mcp add codespar --env CODESPAR_API_KEY=… -- npx -y @codespar/mcp serve`
- Codex CLI: `codex mcp add codespar --env CODESPAR_API_KEY=… -- npx -y @codespar/mcp serve`
- Cursor / VS Code: one-click install buttons at https://codespar.dev/agents
- Claude Desktop: add the block above to the `mcpServers` object in claude_desktop_config.json
- Frameworks (LangChain, CrewAI, Vercel AI, OpenAI, LlamaIndex, Mastra, AutoGen, CAMEL, Letta, Google GenAI): `npm install @codespar/<framework> @codespar/sdk`, then `getTools(session)`
Hosted remote MCP (no local process, MCP