QUICKSTART

Get started with Plith

Five tools for AI agents: deduplication, cost estimation, output validation, behavioral governance, and cross-org failure learning. Pick your integration path below.

Get your API key

Keys are free — no signup form, no dashboard. Just one API call. Both fields are optional but recommended.

curl -X POST https://plith.ai/api/keys \
  -H "Content-Type: application/json" \
  -d '{"email": "you@company.com", "name": "Your Org"}'
{
  "org_id": "org_abc123",
  "key": "plth_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "prefix": "plth_xxxxxx",
  "message": "Store this key securely — it will not be shown again."
}
The key is returned once and cannot be retrieved again — save it immediately.
Free tier: 1,000 credits/month auto-granted on your first API call — no card required.
Rate limit: 3 keys per IP per 24 hours.

Choose your path

Add Plith to your MCP client config. The plith tool exposes all five products — DedupQ, BurnRate, QualityGate, GuardRail, and PitfallDB — through a single action parameter.

Step 1 — Get an API key

curl -X POST https://api.plith.ai/api/keys \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'
# Response — store the key securely, it is shown once 
{
  "org_id": "org_abc123",
  "key": "plth_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "prefix": "plth_xxxxxx",
  "message": "Store this key securely — it will not be shown again."
}
The key is shown once and never stored in plaintext. Copy it now.

Step 2 — Add to your MCP client config

For Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json. For Claude Code, run claude mcp add or edit .mcp.json in your project root.

{
  "mcpServers": {
    "plith": {
      "url": "https://api.plith.ai/api/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}
Restart your MCP client. The agent now has access to all five Plith capabilities via the plith tool.

Example MCP calls

All actions share the same schema: {action, params}. The agent selects the right action from the tool description.

# Dedup check
{
  "action": "dedupq.check",
  "params": {
    "content": "Summarize the Q3 earnings report",
    "task_id": "task_789"
  }
}

# BurnRate estimate
{
  "action": "burnrate.estimate",
  "params": {
    "plan": [
      {"step": 1, "provider": "anthropic", "model": "claude-sonnet-4-6",
       "estimated_input_tokens": 2000, "estimated_output_tokens": 500}
    ]
  }
}

Authentication

Pass your API key in the x-api-key header on every request. Only /api/keys and /api/pitfalldb/report are unauthenticated.

curl https://plith.ai/api/dedupq/check \
  -H "x-api-key: plth_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{...}'

All endpoints

All product endpoints require x-api-key header except /api/keys and /api/pitfalldb/report.

MethodEndpointCost
POST
/api/keysCreate org + API key. Body: { email?, name? }
FREE
POST
/api/dedupq/checkCheck for duplicate or semantically similar cached tasks.
1 credit
POST
/api/dedupq/completeMark a task complete and store its result in the dedup cache.
FREE
POST
/api/burnrate/estimateEstimate LLM cost for a multi-step agent plan.
1 credit
POST
/api/burnrate/trackRecord actual LLM spend for a completed task.
1 credit
POST
/api/burnrate/optimizeGet cheaper model substitutions for a plan given a target budget.
1 credit
POST
/api/burnrate/budgetGet current period spend, budget, and burn rate.
FREE
POST
/api/qualitygate/validateValidate agent output against configured quality rules.
2 credits
GET
/api/qualitygate/trendsGet validation pass/fail trends over time.
1 credit
POST
/api/guardrail/checkCheck a proposed action against behavioral policies.
2 credits
GET
/api/guardrail/policiesList your active guardrail policies.
FREE
POST
/api/pitfalldb/queryQuery known failure patterns for a task type.
2 credits
POST
/api/pitfalldb/reportReport a new agent failure. Contributes to the cross-org database.
FREE
GET
/api/pitfalldb/statsDatabase stats: total pitfalls, top task types, recent additions.
FREE
GET
/api/billing/balanceGet credit balance and plan details.
FREE
POST
/api/billing/checkoutPurchase credits. Amounts: 10, 25, or 100 USD.
FREE

Free tier: 1,000 credits/month

No card required. Create a key and start building.

OpenAPI/openapi.jsonAuthentication →