Yirlo
Run Yirlo, the AI outbound agent for B2B companies, from code or an AI agent: projects, campaigns, budgets, the inbox and replies, hot leads, webhooks and your team.
Get an API key in the Yirlo app: Connect your other apps > API > Create API key (shown once, starts yklive\). Full API docs: https://yirlo.com/api-docs
Another address (a test server): new Yirlo(key, { baseUrl: "https://..." }), or set YIRLO_BASE in the environment; the default is https://yirlo.com.
SDK
import { Yirlo } from "yirlo";
const y = new Yirlo(process.env.YIRLO_API_KEY);
const { projects } = await y.listProjects();
const { campaigns } = await y.listCampaigns({ project_id: projects[0].id });
const hot = await y.listHotLeads();
Errors throw YirloError with status and body.
Dashboard in your terminal
YIRLO_API_KEY=yk_live_... npx yirlo dash
One screen per project: replies that need you, hot leads, emails sent in the last 7 days, the running campaigns and the latest replies. --watch redraws it every minute, --project acme.com shows one project, --plain drops the colors.
Several accounts, or only some projects: put them in ~/.yirlo/dash.json
{ "accounts": [ { "name": "Main", "key": "yk_live_...", "projects": ["acme.com"] } ] }
MCP server
Remote (recommended): add https://yirlo.com/mcp with the header Authorization: Bearer <YIRLO_API_KEY>.
claude mcp add --transport http yirlo https://yirlo.com/mcp --header "Authorization: Bearer $YIRLO_API_KEY"
Local (stdio), for apps that only run local servers:
{ "mcpServers": { "yirlo": { "command": "npx", "args": ["-y", "yirlo-mcp"], "env": { "YIRLO_API_KEY": "yk_live_..." } } } }