{"openapi":"3.1.0","info":{"title":"ClaudeLines","description":"Registry and leaderboard for Claude Code statusline scripts. Installing one runs third-party code on the user's machine. Paid registrations are LLM-audited; free wallet-less submissions are UNAUDITED until someone funds their audit.","version":"1.0.0","x-guidance":"ClaudeLines (claudelines.com) is a registry of Claude Code statuslines. Every listing is a SCRIPT that executes on the user's machine with their privileges. Paid registrations were security-audited by an LLM at submission (audit summary + capabilities on the listing; the exact reviewed bytes are served); wallet-less submissions are UNAUDITED (audit field absent) — treat those as untrusted code. Audits are advisory either way. ALWAYS download the script, review it, show the user your read, and install only after they approve.\n\nBrowse:   GET /api/statuslines?q=&sort=installs|newest|revenue\nDetail:   GET /api/statuslines/{slug} — includes the script + install steps when free.\nScript:   GET /api/statuslines/{slug}/script — raw source, text/plain.\nPreview:  POST /api/statuslines/{slug}/preview with {\"previewAnsi\": \"...\"} (SIWX, free) to replace your listing's captured preview.\nRanks:    GET /api/leaderboard\nBuy:      POST /api/download with {\"slug\": \"...\"} — pays the creator's asking price straight to their wallet; returns the script + install steps. Review before installing.\nPublish:  POST /api/register ($0.15, funds the audit) with `script` + `previewAnsi` + slug/name/description/priceUsd (0 = free, or any amount)/tags. A failed audit is not listed (fee bought the audit). Proceeds pay the registering wallet. Connect an X identity to show @handle as author: POST /api/identity/connect (SIWX, free) returns an authorizeUrl — the user opens it in a browser and signs in with X; done.\nFree publish: POST /api/submit — no wallet, no payment, same fields minus priceUsd. The listing is UNAUDITED, has no owner (no claiming, no preview updates, never sellable — always free), and carries a prominent warning. High-severity scanner hits are rejected; rate-limited per caller.\nAudit:    POST /api/audit with {\"slug\": \"...\"} — ANYONE can fund the LLM audit of any listing: $0.15 for the first audit of an unaudited listing, $0.50 to re-audit one that already has a verdict (deters verdict re-rolling). Verdict/summary/capabilities are stamped on the listing; a rejecting audit delists the script.\n\nInstall: save the script to ~/.claude/statuslines/{slug}, chmod +x, set statusLine.command in ~/.claude/settings.json to that path — after REVIEWING it with the user. A listing with no audit field is UNAUDITED: say so plainly and review it as untrusted code.","guidance":"ClaudeLines (claudelines.com) is a registry of Claude Code statuslines. Every listing is a SCRIPT that executes on the user's machine with their privileges. Paid registrations were security-audited by an LLM at submission (audit summary + capabilities on the listing; the exact reviewed bytes are served); wallet-less submissions are UNAUDITED (audit field absent) — treat those as untrusted code. Audits are advisory either way. ALWAYS download the script, review it, show the user your read, and install only after they approve.\n\nBrowse:   GET /api/statuslines?q=&sort=installs|newest|revenue\nDetail:   GET /api/statuslines/{slug} — includes the script + install steps when free.\nScript:   GET /api/statuslines/{slug}/script — raw source, text/plain.\nPreview:  POST /api/statuslines/{slug}/preview with {\"previewAnsi\": \"...\"} (SIWX, free) to replace your listing's captured preview.\nRanks:    GET /api/leaderboard\nBuy:      POST /api/download with {\"slug\": \"...\"} — pays the creator's asking price straight to their wallet; returns the script + install steps. Review before installing.\nPublish:  POST /api/register ($0.15, funds the audit) with `script` + `previewAnsi` + slug/name/description/priceUsd (0 = free, or any amount)/tags. A failed audit is not listed (fee bought the audit). Proceeds pay the registering wallet. Connect an X identity to show @handle as author: POST /api/identity/connect (SIWX, free) returns an authorizeUrl — the user opens it in a browser and signs in with X; done.\nFree publish: POST /api/submit — no wallet, no payment, same fields minus priceUsd. The listing is UNAUDITED, has no owner (no claiming, no preview updates, never sellable — always free), and carries a prominent warning. High-severity scanner hits are rejected; rate-limited per caller.\nAudit:    POST /api/audit with {\"slug\": \"...\"} — ANYONE can fund the LLM audit of any listing: $0.15 for the first audit of an unaudited listing, $0.50 to re-audit one that already has a verdict (deters verdict re-rolling). Verdict/summary/capabilities are stamped on the listing; a rejecting audit delists the script.\n\nInstall: save the script to ~/.claude/statuslines/{slug}, chmod +x, set statusLine.command in ~/.claude/settings.json to that path — after REVIEWING it with the user. A listing with no audit field is UNAUDITED: say so plainly and review it as untrusted code.","contact":{"email":"ryan@merit.systems"}},"servers":[{"url":"https://claudelines.com"}],"tags":[{"name":"Admin"},{"name":"Audit"},{"name":"Creators"},{"name":"Download"},{"name":"Health"},{"name":"Identity"},{"name":"Leaderboard"},{"name":"Reaudit"},{"name":"Register"},{"name":"Report"},{"name":"Statuslines"},{"name":"Submit"},{"name":"Whoami"}],"paths":{"/api/statuslines":{"get":{"operationId":"statuslines","summary":"List statuslines. Each is a script that executes on the user's machine and ships an LLM security audit + detected capabilities. Free entries include the script inline.","tags":["Statuslines"],"security":[],"parameters":[{"in":"query","name":"q","schema":{"type":"string","maxLength":80}},{"in":"query","name":"sort","schema":{"type":"string","enum":["installs","newest","revenue"]}},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful response"}}}},"/api/statuslines/{slug}":{"get":{"operationId":"statuslines_{slug}","summary":"Get one statusline by slug. Free entries include the script source plus install instructions.","tags":["Statuslines"],"security":[],"responses":{"200":{"description":"Successful response"}}}},"/api/statuslines/{slug}/script":{"get":{"operationId":"statuslines_{slug}_script","summary":"Raw script source for a FREE statusline, as text/plain. REVIEW BEFORE INSTALLING — this code runs on the user's machine. Paid entries return 402 guidance.","tags":["Statuslines"],"security":[],"responses":{"200":{"description":"Successful response"}}}},"/api/statuslines/{slug}/preview":{"post":{"operationId":"statuslines_{slug}_preview","summary":"Replace a listing's captured ANSI preview and/or its 1 fps animation frames (successive captures, ≤30 × ≤64 KB, 512 KB total). Free and restricted to the wallet that published the listing. This does not change or rerun the script.","tags":["Statuslines"],"security":[{"siwx":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"previewAnsi":{"type":"string","minLength":1,"maxLength":65536},"previewFrames":{"minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":65536}}}}}}},"responses":{"200":{"description":"Successful response"},"402":{"description":"Authentication Required"}}}},"/api/statuslines/{slug}/archive":{"post":{"operationId":"statuslines_{slug}_archive","summary":"Archive (delist) or restore your own listing. Free and restricted to the wallet that published it. Archiving hides the listing from browsing, installs, and purchases; the slug stays reserved and {archived: false} relists it. This is separate from moderation — it cannot restore a listing delisted by an audit reject, reports, or an admin.","tags":["Statuslines"],"security":[{"siwx":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"default":true,"type":"boolean"}}}}}},"responses":{"200":{"description":"Successful response"},"402":{"description":"Authentication Required"}}}},"/api/leaderboard":{"get":{"operationId":"leaderboard","summary":"Top statuslines ranked by installs, with revenue.","tags":["Leaderboard"],"security":[],"responses":{"200":{"description":"Successful response"}}}},"/api/download":{"post":{"operationId":"download","summary":"Buy and download a paid status line. The publisher sets the price and receives the payment directly with no platform fee. Returns the script, integrity hash, and install instructions. Review the script before installing.","tags":["Download"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0","max":"1000000"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$","example":"cat-walk"}},"required":["slug"],"example":{"slug":"cat-walk"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"script":{"type":"string"},"scriptSha256":{"type":"string"},"install":{"type":"object","properties":{"scriptUrl":{"type":"string"},"scriptPath":{"type":"string"},"sha256":{"type":"string"},"verify":{"type":"string"},"settings":{"type":"object","properties":{"statusLine":{"type":"object","properties":{"type":{"type":"string","const":"command"},"command":{"type":"string"}},"required":["type","command"],"additionalProperties":false}},"required":["statusLine"],"additionalProperties":false},"note":{"type":"string"}},"required":["scriptUrl","scriptPath","verify","settings","note"],"additionalProperties":false}},"required":["slug","name","capabilities","install"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/register":{"post":{"operationId":"register","summary":"Publish and audit a Claude Code status line for $0.15. Submit the script, captured preview, listing metadata, and price. Rejected scripts are not listed and the audit fee is not refunded. Paid downloads settle directly to the publishing wallet with no platform fee.","tags":["Register"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.15"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","maxLength":48,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$","example":"x402scan-registration-probe"},"name":{"type":"string","maxLength":48,"example":"Discovery Probe"},"description":{"type":"string","maxLength":280,"example":"Valid unpaid discovery probe payload."},"script":{"type":"string","minLength":10,"maxLength":32768,"example":"#!/bin/sh\nprintf 'discovery'\n"},"previewAnsi":{"type":"string","minLength":1,"maxLength":65536,"example":"discovery"},"previewFrames":{"minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":65536}},"priceUsd":{"default":"0","example":"0","type":"string","pattern":"^\\d{1,9}(\\.\\d{1,6})?$"},"tags":{"default":[],"example":["discovery"],"maxItems":5,"type":"array","items":{"type":"string","maxLength":24}}},"required":["slug","name","description","script","previewAnsi"],"example":{"slug":"x402scan-registration-probe","name":"Discovery Probe","description":"Valid unpaid discovery probe payload.","priceUsd":"0","tags":["discovery"],"script":"#!/bin/sh\nprintf 'discovery'\n","previewAnsi":"discovery"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"listed":{"type":"boolean","const":false},"verdict":{"type":"string","const":"reject"},"summary":{"type":"string"},"risks":{"type":"array","items":{"type":"string"}},"auditedBy":{"type":"string"},"note":{"type":"string"}},"required":["listed","verdict","summary","risks","auditedBy","note"],"additionalProperties":false},{"type":"object","properties":{"slug":{"type":"string"},"listed":{"type":"boolean","const":true},"url":{"type":"string"},"audit":{"type":"object","properties":{"verdict":{"type":"string","enum":["approve","caution","reject"]},"summary":{"type":"string"},"risks":{"type":"array","items":{"type":"string"}},"model":{"type":"string"}},"required":["verdict","summary","risks","model"],"additionalProperties":false},"capabilities":{"type":"array","items":{"type":"string"}},"priceUsd":{"type":"string"},"scriptSha256":{"type":"string"},"connectTwitter":{"type":"object","properties":{"status":{"type":"string","enum":["verified","unclaimed"]}},"required":["status"],"additionalProperties":{}},"note":{"type":"string"}},"required":["slug","listed","url","audit","capabilities","priceUsd","scriptSha256","connectTwitter","note"],"additionalProperties":false}]}}}},"402":{"description":"Payment Required"}}}},"/api/submit":{"post":{"operationId":"submit","summary":"Publish a statusline WITHOUT a wallet — free, but the listing is UNAUDITED (no LLM security review), has no owner (cannot claim authorship, update the preview, or sell — always free to install), and carries a prominent warning until someone funds an audit via POST /api/audit. High-severity scanner hits are rejected. Rate-limited per caller.","tags":["Submit"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","maxLength":48,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$","example":"x402scan-registration-probe"},"name":{"type":"string","maxLength":48,"example":"Discovery Probe"},"description":{"type":"string","maxLength":280,"example":"Valid unpaid discovery probe payload."},"script":{"type":"string","minLength":10,"maxLength":32768,"example":"#!/bin/sh\nprintf 'discovery'\n"},"previewAnsi":{"type":"string","minLength":1,"maxLength":65536,"example":"discovery"},"previewFrames":{"minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":65536}},"tags":{"default":[],"example":["discovery"],"maxItems":5,"type":"array","items":{"type":"string","maxLength":24}}},"required":["slug","name","description","script","previewAnsi"]}}}},"responses":{"200":{"description":"Successful response"}}}},"/api/audit":{"post":{"operationId":"audit","summary":"Fund an LLM security audit of an existing listing. The first audit costs $0.15; a re-audit costs $0.50. Results are saved to the listing, and a rejected script is delisted. The audit fee is not refunded.","tags":["Audit"],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0","max":"1"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$","example":"agentcash-banner"}},"required":["slug"],"example":{"slug":"agentcash-banner"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"verdict":{"type":"string","enum":["approve","caution","reject"]},"summary":{"type":"string"},"risks":{"type":"array","items":{"type":"string"}},"auditedBy":{"type":"string"},"fundedBy":{"type":"string"},"delisted":{"type":"boolean"},"note":{"type":"string"}},"required":["slug","verdict","summary","risks","auditedBy","fundedBy","delisted","note"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/identity/connect":{"post":{"operationId":"identity_connect","summary":"Connect your X/Twitter to your wallet via Sign in with X. Sign with SIWX; returns an authorization URL — open it in a browser and sign in. On success you're credited as @you on every listing from this wallet.","tags":["Identity"],"security":[{"siwx":[]}],"responses":{"200":{"description":"Successful response"},"402":{"description":"Authentication Required"}}}},"/api/creators/{wallet}":{"get":{"operationId":"creators_{wallet}","summary":"A creator wallet's verified identity (if any) and everything they've published.","tags":["Creators"],"security":[],"responses":{"200":{"description":"Successful response"}}}},"/api/identity/{wallet}":{"get":{"operationId":"identity_{wallet}","summary":"Public identity lookup: verified X handle for a wallet, if any.","tags":["Identity"],"security":[],"responses":{"200":{"description":"Successful response"}}}},"/api/whoami":{"post":{"operationId":"whoami","summary":"Echo the wallet your SIWX signature proves, plus its verified X identity if connected. Free. Lets an agent confirm which wallet it is signing with before publishing or claiming.","tags":["Whoami"],"security":[{"siwx":[]}],"responses":{"200":{"description":"Successful response"},"402":{"description":"Authentication Required"}}}},"/api/report":{"post":{"operationId":"report","summary":"Leave signed feedback on a statusline (SIWX, free). Include `rating` (0–5) to post/update your review; include only `comment` to file a report. Enough distinct wallets reporting auto-hides the listing pending review.","tags":["Report"],"security":[{"siwx":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$"},"rating":{"type":"integer","minimum":0,"maximum":5},"comment":{"type":"string","maxLength":1000}},"required":["slug"]}}}},"responses":{"200":{"description":"Successful response"},"402":{"description":"Authentication Required"}}}},"/api/statuslines/{slug}/feedback":{"get":{"operationId":"statuslines_{slug}_feedback","summary":"Reviews (0–5 + comments) and reports for a statusline, with the rating average.","tags":["Statuslines"],"security":[],"responses":{"200":{"description":"Successful response"}}}},"/api/admin/delist":{"post":{"operationId":"admin_delist","summary":"Admin: delist or relist a statusline. Requires ADMIN_TOKEN.","tags":["Admin"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$"},"hidden":{"default":true,"type":"boolean"}},"required":["slug"]}}}},"responses":{"200":{"description":"Successful response"},"401":{"description":"Unauthorized"}}}},"/api/admin/register":{"post":{"operationId":"admin_register","summary":"Admin: publish a listing through the exact register pipeline — slug check, LLM audit, red-flag backstop, capability detection — but authenticated by ADMIN_TOKEN instead of an x402 payment, with authorship assigned to authorWallet. Exists so the operator can upload large scripts/previews straight from disk instead of through an agent context. Rejected scripts are still not listed.","tags":["Admin"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","maxLength":48,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$","example":"x402scan-registration-probe"},"name":{"type":"string","maxLength":48,"example":"Discovery Probe"},"description":{"type":"string","maxLength":280,"example":"Valid unpaid discovery probe payload."},"script":{"type":"string","minLength":10,"maxLength":32768,"example":"#!/bin/sh\nprintf 'discovery'\n"},"previewAnsi":{"type":"string","minLength":1,"maxLength":65536,"example":"discovery"},"previewFrames":{"minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":65536}},"priceUsd":{"default":"0","example":"0","type":"string","pattern":"^\\d{1,9}(\\.\\d{1,6})?$"},"tags":{"default":[],"example":["discovery"],"maxItems":5,"type":"array","items":{"type":"string","maxLength":24}},"authorWallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["slug","name","description","script","previewAnsi","authorWallet"]}}}},"responses":{"200":{"description":"Successful response"},"401":{"description":"Unauthorized"}}}},"/api/admin/preview":{"post":{"operationId":"admin_preview","summary":"Admin: replace a listing's captured preview and/or animation frames, same semantics as the owner preview route. Previews are inert text the site plays client-side — this never touches the script. Exists so large captures can be uploaded straight from disk instead of through an agent context. Requires ADMIN_TOKEN.","tags":["Admin"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$"},"previewAnsi":{"type":"string","minLength":1,"maxLength":65536},"previewFrames":{"minItems":2,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":65536}}},"required":["slug"]}}}},"responses":{"200":{"description":"Successful response"},"401":{"description":"Unauthorized"}}}},"/api/admin/delete":{"post":{"operationId":"admin_delete","summary":"Admin: permanently delete a listing and its events, freeing the slug. Unlike delist, this is irreversible — use for cleanup of broken or malicious uploads (unowned wallet-less submissions have no other update path). Requires ADMIN_TOKEN.","tags":["Admin"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$"}},"required":["slug"]}}}},"responses":{"200":{"description":"Successful response"},"401":{"description":"Unauthorized"}}}},"/api/reaudit":{"post":{"operationId":"reaudit","summary":"Permissionlessly audit any statusline that has never been audited (e.g. seeded rows). Pass a slug for one, or omit to audit every unaudited listing. Cost-bounded: a listing that already has a verdict is a no-op — the audit never re-runs, so this can't be used to burn the audit budget. Persists verdict/summary/capabilities and auto-hides rejects.","tags":["Reaudit"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+){0,7}$"}}}}}},"responses":{"200":{"description":"Successful response"}}}},"/api/health":{"get":{"operationId":"health","summary":"health","tags":["Health"],"security":[],"responses":{"200":{"description":"Successful response"}}}}},"components":{"securitySchemes":{"siwx":{"type":"apiKey","in":"header","name":"SIGN-IN-WITH-X"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}