CLI & Management API
One command, or the bearer-key REST API underneath it. Everything the console does: create servers, expose tools, publish, issue keys, test-call a tool, read the audit log, and release a held contract change. Base URL https://api.kaiv.ai/api/bridge/v1
The full description is an OpenAPI 3.1 spec: kaiv.ai/bridge/openapi.json. Bridge can turn it into an MCP server too.
Mint a management key in the console (Access → New key, admin or owner role). Management keys are refused by the MCP gateway, and gateway keys are refused here, the two credential types are never interchangeable. A management key can mint gateway keys, but never another management key.
curl https://api.kaiv.ai/api/bridge/v1/servers \ -H "Authorization: Bearer kv_mgmt_..."
The same API, one command. Zero dependencies, Node 18+. It uses the runtime's built-in fetch rather than pulling in an HTTP library, so there is nothing to install and nothing to audit. The CLI is open source under MIT: github.com/ai-kaiva/bridge.
# A public spec: a server for 72 hours, a key, and a claim link to keep it npx @kaiva/bridge try --openapi https://petstore3.swagger.io/api/v3/openapi.json
# Console -> Keys & access -> Issue a key -> Management export KAIVA_BRIDGE_TOKEN=kv_mgmt_... npx @kaiva/bridge servers # verify the token, read-only
# An API npx @kaiva/bridge push my-api --openapi https://api.example.com/openapi.json --read-only # → LIVE https://api.kaiv.ai/api/bridge/mcp/my-api-a1b2c3d4 # A database: the connection string comes from stdin, not the command line printf %s "$DATABASE_URL" | npx @kaiva/bridge push shop-db --mysql --secret-stdin --read-only # Documents: files or a folder; waits until each is read npx @kaiva/bridge push handbook --docs ./policies
npx @kaiva/bridge tools <server-id> # ids, names, required args
npx @kaiva/bridge invoke <server-id> findPetsByStatus --args '{"status":"available"}'
npx @kaiva/bridge key <server-id> --label claude-code --replace # gateway key for agentsnpx @kaiva/bridge introspect <server-id> # re-read the source; reports anything held npx @kaiva/bridge promote <server-id> # publish a held contract change npx @kaiva/bridge reject <server-id> # discard it, restore what is served npx @kaiva/bridge logs --limit 20 # tail the audit log
npx @kaiva/bridge --help # every command and flag
Install the setup skill, then ask Claude Code to connect your database or API. It creates the server, makes a key, adds it to your client and confirms with a first tool call. It asks you before connecting without a certificate check or turning on operations that write.
npx @kaiva/bridge skill install # adds it to ~/.claude/skills # then ask: "connect my database to Claude Code with Kaiva Bridge"
Runnable scripts, safe to run again:
- A database into Claude Code (PostgreSQL, MySQL or MariaDB)
- An OpenAPI spec into Cursor
- Call your server from your own app (Node, no dependencies)