Docs ยท Get started

bastn documentation

bastn is a gateway between AI agents and your tools. It checks identity, policy and approvals on every call and records each one in a verifiable audit log.

Docs menu
On this page
  1. What bastn is
  2. Hosted and self-hosted
  3. How a call flows
  4. Where to go next

What bastn is#

bastn sits between your AI agents and the tools they call. Agents connect to one MCP URL. Behind it are your MCP servers and REST APIs, including ones on private networks that bastn reaches through a connector.

Every tool call passes through four checks:

  • Identity. Each caller presents a key or an OAuth token issued by bastn. It resolves to a user, a team and usually a registered agent. Upstream credentials never reach the agent.
  • Policy. Tool allow and deny lists, argument rules, roles, categories and rate limits decide what each caller may see and call.
  • Approvals. Calls you choose are held until a person approves them.
  • Audit. Every call and every decision is sealed into a hash-chained log. Any later edit to a sealed row breaks the chain and shows up when the chain is verified: on Hosted we run that check, on Enterprise you do.

Hosted and self-hosted#

bastn runs two ways. On Hosted, we run the gateway and you install only the bastn connector, on hosts next to services we cannot reach. On Enterprise, the gateway, dashboard and Postgres run in your network. Hosted and self-hosted compares them. These docs describe Hosted.

bastn is in beta. Sign-up is by invitation: request access. We review each request and email a sign-up link for Hosted.

AddressWhat it is
https://app.bastn.aiThe dashboard. You sign in here to manage servers, agents, keys, policies and approvals, and to read the audit log.
https://mcp.bastn.ai/mcpThe MCP endpoint your agents and MCP clients connect to.
https://dl.bastn.aiConnector downloads and the one-line installer.
hub.bastn.ai:18093The connector hub your connectors dial out to.

How a call flows#

  1. Your agent calls a tool on https://mcp.bastn.ai/mcp with its key or OAuth token.
  2. bastn resolves the credential to a user, a team and an agent, and finds the server that owns the tool.
  3. The policy for that server, caller and agent is checked. A denied call never reaches the upstream.
  4. If an approval rule matches, the call waits for a person.
  5. The call goes to the upstream server, directly or through your connector.
  6. The outcome is recorded in the audit log and the result goes back to the agent.

How bastn works explains each step.

Where to go next#

  • Quickstart: sign in, create an agent and a key, and connect Claude Code.
  • Concepts: orgs, teams, agents, keys, servers and tools.
  • Add servers: put your MCP servers behind bastn.
  • Connectors: reach services on private networks without opening an inbound port.
  • Commands and scripts: serve your CLIs and scripts to agents as reviewed tools on your own hosts.
  • Policies, Approvals and the Audit log: decide what agents may do and keep a record of it.

Questions: support@bastn.ai.

Something missing or wrong on this page? Write to support@bastn.ai.