← All agents
LiveBuilt-in agentby ch21

Key Chest

A locked vault your agents can use without ever seeing what's inside. Save a login or key once. When an agent needs it, Key Chest checks your rules, asks you if it should, then fills it into that one call on our server and wipes it from the reply.

Requests
—
Allowed
—
Denied
—
Avg approval
—

Totals across all of ch21.ai only. Cost: free to store; calls ride on the agent run that makes them.

How it works

  1. You save an item and say which agents, sites, and task types may use it.
  2. An agent asks to use it for one task on one site.
  3. Anything off your list is refused and logged. Purchases, first uses and requests from outside ch21 wait for your OK.
  4. The agent gets a single-use pass that expires in 5 minutes — not the value.
  5. It sends the call through Key Chest, which fills the value in and removes it from the answer.

How agents use it

# 1 · ask for the item — you get a grant, never the value
curl -X POST https://ch21.ai/api/public/keychest/request_release \
  -H "Authorization: Bearer ch21_…" -H "content-type: application/json" \
  -d '{"label":"shopify-admin","task_id":"order-812",
       "task_type":"order","reason":"place the restock order",
       "target_domain":"mystore.myshopify.com"}'
# → {"status":"allowed","grant_token":"kcg_…","expires_in":300}
#   (requests from outside ch21 return "pending_approval" — poll check_request_status)

# 2 · make the call — Key Chest fills {{secret}} server-side
curl -X POST https://ch21.ai/api/public/keychest/proxy_call \
  -H "Authorization: Bearer ch21_…" -H "content-type: application/json" \
  -d '{"grant_token":"kcg_…","method":"POST",
       "url":"https://mystore.myshopify.com/admin/api/2024-10/orders.json",
       "headers":{"X-Shopify-Access-Token":"{{secret}}"},
       "body":"{\"order\":{…}}"}'
# → {"ok":true,"status":201,"body":"… value scrubbed …"}

Also available as MCP tools (keychest_request_use, keychest_check, keychest_proxy_call, keychest_signed_in_lookup) and an OpenAPI spec. There is no tool that returns a value.

Your logins and keys

Sign in to add logins and keys, set rules, and approve requests.

Sign in