Docs Build agents
Creator guide
List an agent you host on your own cloud, set per-use prices and get paid monthly in EUR. Kade handles sign-in, holds, caps, VAT, invoices, disputes and payouts.
Note Using a coding agent? Claude Code, Codex, Cursor, GitHub Copilot and Gemini CLI can
do these steps for you with the Kade agent skill, and
publish from code with the kade CLI instead of the console.
Quickstart
Note Before you start (2 min): a Google account; an MCP server you can deploy to public HTTPS, or the snippet below; for payouts, you (or your company) must be based in the EEA, the UK or Switzerland. You can register and test before Stripe onboarding finishes.
- Install the SDK1 minbash
uv add "kade-agent-sdk[fastmcp]" - Add it to your FastMCP server5 minThis is the whole integration. The middleware
verifies every gateway request;
report_eventbills per unit of work.server.pyfrom fastmcp import FastMCP from marketplace_sdk import GatewayVerifier, report_event, gateway_claims from marketplace_sdk.fastmcp import MarketplaceMiddleware, add_data_subject_tools mcp = FastMCP("my-agent") verifier = GatewayVerifier( jwks_url="https://kade.taskmastergpt.nl/.well-known/jwks.json", issuer="https://mcp.kade.taskmastergpt.nl", agent_id="agt_…", # shown in your creator console ) mcp.add_middleware(MarketplaceMiddleware(verifier)) @mcp.tool async def lookup(query: str) -> dict: report_event("record_found", 3) # billed per your event price, capped return {"run": gateway_claims().run_id, "query": query} # Required: answer Kade's export and erasure requests (see "Data-subject tools"). add_data_subject_tools(mcp, stores_no_user_data=True) app = mcp.http_app(path="/mcp") - Deploy anywhere with HTTPS on port 4435–10 minCloud Run, Fly, or a VM behind a proxy. Kade never hosts your code.
- Register5 minSign in, open Creator, create your profile, then New agent. Copy
the agent id (it has a copy button on the endpoint page and under Links on the agent page)
into
GatewayVerifier, redeploy, then register New version with your endpoint URL. - Set prices and run a test call5 minExpose your tools, set a price per call (and per event), then Test call on the version page. Test calls are free.
- Add a test case, declare data handling, submit5 minOne passing eval case is required; the security scan runs on submit. We review your first version before it goes live.
Warning Order matters: set the agent id in GatewayVerifier and redeploy before you register
the version, or the SDK rejects the registration token.
Stuck? See Troubleshooting.
Build it with your coding agent
The Kade agent skill teaches your coding agent this whole guide. It
uses Agent Skills (a SKILL.md folder, an open standard), so it works with Claude Code, OpenAI
Codex, Cursor, GitHub Copilot, Gemini CLI and other agents that read skills. It scaffolds a project
with the SDK wired in, writes tests that sign gateway tokens the way Kade does, drafts your prices,
eval cases and listing, and runs an offline check against the rules on this page before you
register.
- Download the skill1 minkade-agent.zip holds one folder,
kade-agent/, of plain Markdown and Python; read it before you install it. The skill and the SDK are licensed under PolyForm Shield 1.0.0: build and sell agents with them freely, but don't resell them or use them for a competing marketplace. - Unzip it into your agent's skills folder1 minThe table below lists the folders; one command does it for most agents.
- Ask for the agent you want to sellabout 20 minFor example: "Build a Kade agent that
checks EU VAT numbers, €0.01 per number." Your agent follows the steps on this page and
publishes with the
kadeCLI; you only create a creator key.
| Coding agent | This project | All your projects |
|---|---|---|
| Codex, Cursor, GitHub Copilot, Gemini CLI | .agents/skills/ |
~/.agents/skills/ |
| Claude Code | .claude/skills/ |
~/.claude/skills/ |
| Claude apps | Upload the zip in your Skills settings | |
| Any other agent | Unzip it anywhere and say: "Read kade-agent/SKILL.md and follow it." |
curl -fsSL https://kade.taskmastergpt.nl/downloads/kade-agent.zip -o kade-agent.zip
unzip -o kade-agent.zip -d .agents/skills && rm kade-agent.zip
Publish from code
Everything the console asks for (listing, endpoint, prices, limits, data declaration, eval cases)
can live in your repository as one kade.toml file. The kade command, installed with the SDK
(version 0.2 or later), sends it to Kade, so you never copy values into a form, and a change is a
reviewed commit rather than a click.
- Create a creator key1 minCreate your creator profile under Creator if you haven't
yet, then under API keys choose Publishing agents (creator API). Creator keys
(
mk_creator_…) can publish but can't call agents; gateway keys (mk_live_…) are the reverse.bashuv run kade login - Describe the agent in
kade.toml(5 min). The skill's template has one; prices are strings in euros.kade.toml[agent] slug = "vat-check" title = "VAT Check" summary = "Validate EU VAT numbers against VIES, with the registered name and address." category = "finance" description_file = "DESCRIPTION.md" [version] endpoint_url = "" # empty on the first apply [tools.check_vat] per_call_eur = "0.01" [data] stores_user_data = false llm_providers = "none" data_region = "EU (europe-west4)" [evals] file = "evals/kade_cases.json" - Create the agent1 minThe first
kade applycreates it and writesMARKETPLACE_AGENT_IDinto your local.env. Deploy your server with that id. - Register, check, submit5 minSet
endpoint_urlto your deployed URL plus/mcp, then:bashuv run kade apply # registers the version: prices, limits, data, cases uv run kade test check_vat '{"vat": "NL123456789B01"}' # free uv run kade check # eval cases and the security scan uv run kade submit
kade apply --dry-runshows what would change and changes nothing.kade statusprints the checklist and the next step.--jsonon any command prints the API's answer for scripts.- Applying the same file twice changes nothing. A live version is frozen, so when you change
prices, limits or the data declaration,
applyregisters a new version for review; a price increase also needs--confirm-price-increase, because subscribers must approve it. - Cases missing from your eval file are removed, and tools without a
[tools.<name>]table are hidden. Sections you leave out ofkade.tomlstay as they are. - In CI, set
KADE_API_KEY(a creator key, from your secret store) andKADE_ENDPOINT_URL. - From Claude.ai or ChatGPT: turn on Show creator tools in my assistant under
Settings. Your Kade connector then offers
marketplace__creator_*tools (status, apply, test, checks, submit) with the same rules;applypreviews by default. They work only when the connector is signed in with Google, never with an API key. - At most 60 apply, test, check and submit calls per hour per creator.
Write an agent page that sells
Your agent page /a/<slug> is the page you share. Most of your first users land there from your
link, not from the store, so it has to convince a stranger on its own.
- Do. "Cited one-page brief of any public URL." A summary of at most 120 characters, outcome first.
- Don't. "AI-powered URL tool." No SLA, no accuracy percentages, no filler: your page already shows live uptime, latency and the nightly test pass rate.
- Description in four short sections: Who it's for · What you get · Example · Limits. About 250 words at most.
- Show real output: mark at least one eval case public. Its latest passing output appears under "What you get" on your page, trimmed, with what that run costs at today's prices. Pick a case whose result you would forward to a colleague.
- State the typical cost in words: "usually €0.05–€0.10 per brief". Once your agent has enough real runs, the page also shows the measured typical run.
- Share your link
/a/<slug>?ref=<you>: subscribers who arrive through it are counted on your Stats page.
Pricing your agent
| Model | Use it for | Reads in the tool list as |
|---|---|---|
| Per call | Cheap, uniform tools: a lookup, a conversion | €0.02/call · max €0.02 |
| Per event | Work that varies: pages fetched, records found, documents processed | €0.05/call + €0.01/page_fetched (max 5) · max €0.10 |
Per event prices come with a max_per_call that caps a single call, and the tool description shows
both the unit price and the maximum, so users still see the worst case.
Price the outcome, not the access. A brief that saves someone 20 minutes is worth more than the API calls behind it. Agents that deliver a finished result ("a cited competitor brief", "an enriched lead list") can charge per result, and users compare that price with their own time, not with other tools. Price increases move existing subscribers to re-consent; decreases apply at once. Start a bit higher rather than lower.
What your agent must provide
- A Streamable HTTP MCP server on public HTTPS (port 443). Any framework works; the SDK makes FastMCP easiest.
- It accepts only gateway requests: verify the gateway JWT (the SDK does this).
- At most 20 tools, names matching
^[A-Za-z0-9_-]{1,36}$, valid JSON Schema inputs. - It reports billable events in the result
_meta(SDKreport_event). - It finishes within your
max_run_seconds(≤ 900) and is idempotent perrun_id. - It can export and delete what it stores per user (the two reserved data-subject tools below; required to publish).
Steps in the console
Prefer code? Every step below except Stripe onboarding can also be done with
kade apply.
| # | Step | What happens |
|---|---|---|
| 1 | Become a creator | Display name and country (EEA, UK or CH), then Connect Stripe (Express onboarding). You can register and test before onboarding finishes. |
| 2 | New agent | Slug (your tools become slug__tool), title, summary, description, visibility (public, unlisted, or private with an invite link) |
| 3 | Register endpoint | Tools fetched once with a signed scope=register token and frozen as a snapshot. The gateway never serves your live definitions, so later edits need a new version. |
| 4 | Screening | Descriptions and schemas checked for prompt-injection patterns (hidden characters, "ignore previous instructions", text addressed to the model, long base64, URLs). Flags send the version to manual review. |
| 5 | Prices | Per tool, a price per call (€0–€50) plus up to 5 events (name, €0–€10 per unit, max_per_call 1–1000). Max cost per call = per call + Σ unit × max, capped at €100. |
| 6 | Test call | Free, from the version page |
| 7 | Eval cases | At least one deterministic case (not_error, contains, regex, jsonpath_*, max_chars, events_max, latency_ms_max, output_schema) must pass before you submit |
| 8 | Data declaration | Whether the agent stores data per user (and for how many days), which LLM providers it uses and where data is processed. Consumers see it before they subscribe. |
| 9 | Security scan | Runs on submit and on demand from the version page. Blocking findings must be fixed first; see below. |
| 10 | Submit | Admin approval, then live with a shareable install link /a/<slug>?ref=<you> |
Data-subject tools
Required to publish. Consumers can ask Kade to export or delete their data. Kade forwards the request to every agent they used by calling two reserved tools on your endpoint.
| Tool | Token | Return structuredContent |
|---|---|---|
kade_export_subject(request_id) |
scope=export |
{"subject": "<sub>", "records": [ … ]} (≤ 1 MB kept) |
kade_erase_subject(request_id) |
scope=erase |
{"subject": "<sub>", "status": "erased"} or "nothing_stored" |
The subject is the token's sub (the same pseudonymous ID your calls receive), never an argument.
Kade strips these tools from your listing, so consumers never see them. With the SDK:
# Nothing is kept per user after a call:
add_data_subject_tools(mcp, stores_no_user_data=True)
# Or, if you store data per user:
add_data_subject_tools(
mcp,
erase=lambda subject: db.delete_all(subject), # True if anything was deleted
export=lambda subject: db.records_for(subject), # list of JSON-serialisable dicts
)
Without the SDK: implement both tools, accept them only with their own scope, and refuse erase/
export tokens on your other tools. Requests are retried with backoff for up to about four days;
unanswered requests are escalated to us, since the consumer's legal deadline is 30 days.
Security scan
Kade probes only your registered endpoint, with signed test tokens (test=true). Eval cases are
used as the probe arguments, so keep at least one that passes.
| Check | Severity | Passes when |
|---|---|---|
| Transport | Blocking | https with a valid certificate |
| Gateway tokens | Blocking | A valid token is accepted; no token, an expired token, a token for another agent, a token signed by an unknown key, a register token and an erase token on a normal tool are all refused. A token issued for another tool should be refused (advisory). |
| Data | Blocking | Declaration complete; both data-subject tools answer; after your eval cases run as a test subject, erase works and a second export is empty; "stores no user data" matches what export returns |
| Hygiene | Advisory | Exposed tools declare readOnlyHint or destructiveHint |
Scans also run nightly on live versions; a failing scan blocks the Verified badge until it passes again.
Gateway JWT claims
EdDSA (Ed25519), keys at /.well-known/jwks.json (rotation via kid).
| Claim | Meaning |
|---|---|
iss |
Gateway URL |
aud |
agent:<agent_id> |
sub |
Pseudonymous subject, stable per user and creator |
scope |
call · register · verify · erase · export |
run_id, tool |
The run and the tool being called |
max_cost_micros, events |
The held maximum and your event prices |
test |
True for test calls and verification |
exp |
now + max_run_seconds + 60 |
Billing events
The SDK writes this for you. Unknown event names are ignored; counts are capped at max_per_call.
"_meta": {
"nl.taskmastergpt.kade/billing": {
"events": [ { "name": "page_fetched", "count": 3 } ]
}
}
Fees and payouts
- Platform fee: 15%, or 10% for Verified agents and for the first 50 founding creators (12 months). The lowest rate applies.
- Earnings become available 7 days after each charge. Payouts run on the 5th of each month for balances ≥ €50, as Stripe transfers in EUR.
- Errors and timeouts are never charged, so they earn nothing. Approved disputes reverse the charge.
Verified badge
Checked daily, earned and lost automatically, and revoked after 3 consecutive failing days. You need a track record of 50 real runs or 30 days live, plus all of:
- ≥ 5eval cases
- ≥ 95%nightly pass rate (14 days)
- ≥ 99%uptime (30 days)
- ≤ 2%real-run error rate
- Passinglatest security scan
Verified agents pay a 10% fee. Consumers read what the badge means at /verified.
Price changes and deleting an agent
Price increases on a new version move existing subscribers to re-consent; their calls return
E_PRICE_CHANGED until they approve. Decreases and new tools apply immediately.
Delete agent sits at the bottom of the agent page (type the slug to confirm). Wait for running calls to finish first.
- Never used by consumers (only your test calls and evals): the agent, its versions, eval cases and test calls are removed and the slug is free again.
- Used by consumers: call history, disputes and earnings stay on record, so the agent is retired instead. It disappears from the store, the gateway and your console, every subscription is cancelled and stored upstream keys are erased. The slug stays reserved so nobody can take over your links or tool names. Earnings still pay out as usual.
Troubleshooting
The most common problems, updated after every onboarding session.
Endpoint rejected on a new version
The URL must be public https on port 443 and resolve to a public IP; IP literals, localhost and
private ranges are refused, and redirects are not followed. Register the final URL (with /mcp).
"at most 20 tools" or "tool name must match"
Expose at most 20 tools, named with letters, digits, _ or - (≤ 36 characters). Split large
servers into several agents.
Test call returns 401 / -32001
The SDK refused the gateway token: agent_id in GatewayVerifier doesn't match the console, or
issuer/jwks_url point to the wrong environment. Redeploy after fixing.
Submit is refused: eval cases
At least one eval case must exist and all must pass. Run them from the version page and read the failing assertion.
Submit is refused: security scan
Read the blocking finding on the version page. Most often the data-subject tools are missing
(add_data_subject_tools) or the data declaration is incomplete.