Community
Free
No charge
- Up to 10 connected hosts
- Up to 3 agents
- Community support by email
- Commercial use is allowed.
Internal tool gateway · Hosted or self-hosted
bastn turns the CLIs, scripts and internal APIs in your network into typed tools, with a separate menu for each agent. Risky calls wait for a person. Every call lands in a hash-chained audit log.
Its menu for ip
Try a call
net-diag-agent → Show addresses · "eth0; reboot" · on web-2
refused: not an interface name
the call never reaches the machine
What goes behind it
MCP gateways put a front door on MCP servers that already exist, often for SaaS apps. bastn starts with the tools in your network: CLIs, scripts and private services.
01
systemctl, journalctl, your deployctl, your runbook scripts. Describe one once and each subcommand becomes a named action with checked arguments.
One bastn connector per host
02
Billing, inventory, the admin API nobody wants to wrap. Its operations become typed tools. The credential stays on the connector.
No MCP server to write
03
Put the internal MCP servers you already run behind the same keys, policy, approvals and audit log.
Same rules for all three
What teams do today
None of them gets past a security review. bastn is the fourth way.
How it works
01
One small program per host. It dials out over mutual TLS to the bastn gateway: hub.bastn.ai on Hosted, your own gateway on Enterprise. The host opens no inbound port.
BASTN_CONNECTOR_TOKEN='wpj_…' bastn-connector enroll --hub hub.bastn.ai:18093 --name web-4202
Pick which subcommands become actions and which values each argument accepts. Read-only Linux diagnostics ship ready to use. An agent that is missing a tool can ask for it with propose_tool; nothing is applied until your admins review it.
03
Each agent gets its own key and its own actions, hosts, argument values and rate limits. It connects to one MCP endpoint, /mcp, with a virtual key or an OAuth sign-in. Risky actions wait for a person.
In the dashboard


Check it yourself
deny: tool not permitted by gateway policy: write_file
hold: approval required: call is held for human approval (approval id 1)$ bastn audit verify --file audit.jsonl
ok: chain global intact, 29 rows checked, length 29, head 55597adc948f…
# the same export after one row was changed
BROKEN: chain global, audit chain break at seq 5: hash_mismatch …Pricing
Every plan includes typed tools from your CLIs and scripts, per-agent menus, approvals, rate limits you set, a switch that disables an agent and its keys, and a hash-chained audit log.
Free
No charge
$8
per connected host per month, billed annually
$10 per connected host per month, billed monthly. Early access pricing.
Contact us
FAQ
It speaks MCP, so any MCP-capable agent can use it, and it can front any HTTP MCP server. It is not built for external SaaS apps. bastn is a tool gateway for your internal systems: the VMs, containers, sandboxes, services, scripts and CLIs in your network. See MCP gateway vs tool gateway.
SSH access, however well it is brokered, ends in a shell on the host, bounded by the Unix account the agent logs in as. An SSH MCP server adds allow-lists on top of that shell. The bastn connector runs named actions with typed, validated arguments. There is no shell by default. Raw commands are off unless you enable them, and every raw call waits for approval. You do not have to write or host an MCP server per tool. Keep your access broker for people. Give agents a menu. See bastn vs SSH MCP servers and bastn and Teleport.
Yes. One small connector per host, the same way you already run monitoring or config agents. It dials out, needs no inbound port and can run the actions you approved. There is no shell by default. The connector ships for Linux (amd64, arm64) and as a Docker image. There are no native macOS or Windows builds; run the image there. The Linux command pack is tested on Debian, Ubuntu and Alpine. Install it with the one-line Linux installer or the Docker image.
Any agent that speaks MCP. Point it at your bastn gateway's single MCP endpoint, /mcp, and authenticate with that agent's own virtual key or an OAuth sign-in. On Hosted that is https://mcp.bastn.ai/mcp; on Enterprise it is your own gateway's address.
If your agents mostly need SaaS apps, a gateway aimed at SaaS is a better fit. If your whole estate is in one cloud and you are happy with that cloud's node agent, start there.
Early access
Early access is open to a small number of platform and SRE teams. Tell us which internal tools your agent should use: the CLIs and scripts on your hosts, internal APIs or MCP servers you already run.