Internal tool gateway · Hosted or self-hosted

Give your agents a menu,not a shell.

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.

  • Hosted, or self-hosted on Enterprise
  • No SSH keys, no open ports
  • Works with any MCP agent
Illustrative

Its menu for ip

  • Show addressesread
  • Look up a routeread
  • Bring an interface up or downnot offered
  • Delete an interfacenot offered
  • Run anything in a namespacenot offered

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

Built for the internal tools that will never get an MCP server.

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.

  1. 01

    CLIs and scripts on your hosts

    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

  2. 02

    Internal services with an OpenAPI spec

    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

  3. 03

    MCP servers you already run

    Put the internal MCP servers you already run behind the same keys, policy, approvals and audit log.

    Same rules for all three

bastnweb-41web-42web-43triage-agentremediation-agentsvc_restartneeds approvaloutbound only

What teams do today

Three ways to let an agent act on your systems.

None of them gets past a security review. bastn is the fourth way.

  • SSH keys or a brokered session

    The agent gets
    A shell on the host.
    The catch
    The only limit is the Unix account it logs in as.
  • An MCP server per internal tool

    The agent gets
    Whatever each server exposes.
    The catch
    Someone writes, hosts and maintains every one. Most tools never get one.
  • A shared key or a job runner account

    The agent gets
    Every job that account can launch.
    The catch
    Nobody can say which agent ran what, or stop just one.
  • bastn

    The agent gets
    A menu: named actions, on the hosts it may touch, with the values it may use.
    The catch
    You install one connector per host. We run the gateway on Hosted; on Enterprise you run it in your network.

How it works

Three steps from a CLI on a host to a tool in an agent’s menu.

  1. web-42inbound: noneconnectoroutbound mTLSto your bastn gateway

    01

    Install the connector

    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-42
  2. deployctlstatusreadlogsreadrestartneeds approvalrollbackwriteshellnot offered

    02

    Describe your tools

    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.

  3. web-42triageremediationstatuslogsstatuslogsrestart

    03

    Give each agent a menu

    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

Risky calls wait for a person.

A held call in the bastn dashboard: service_restart, marked DESTRUCTIVE, on web-01 via ops, held 2 minutes ago and expiring in 57 minutes, requested by bob through agent triage-bot in team platform, with the arguments unit nginx.service and target web-01, Approve, Reject and Edit arguments buttons, and this decision note typed in: Config test passed. One restart approved.

Every call lands in a hash-chained audit log.

The newest eight rows of the bastn audit table, all on the server ops by bob@northwind.example through agent triage-bot, newest first: an approval for service_restart REJECTED, a systemctl_status call ALLOWED, the approved service_restart call ALLOWED, its approval CONSUMED and APPROVED, then a new service_restart call HELD, with its approval CREATED and APPROVAL.PENDING.

The bastn dashboard, v0.6.0, with demo data.

Check it yourself

Decide what an agent may do. Then verify what it did.

Policy verdictscaptured from a bastn run
deny: tool not permitted by gateway policy: write_file
hold: approval required: call is held for human approval (approval id 1)
The audit trail, verified offline on Enterprisecaptured from a bastn run
$ 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 …
Approvals
Destructive actions are held for approval by default. The approver sees the exact action, host and arguments. Requests can also go to a webhook per organisation.
Kill switch
Pause, kill or retire an agent with one switch. Kill and retire also revoke its keys.
Hash-chained audit
Every decision is written to a hash-chained log. An edited, re-ordered or deleted row in the middle of the chain is caught when the chain is verified. On Hosted, we run that check as the operator and you can export your team's rows; on Enterprise you hold the key and verify the whole chain offline.

Pricing

Free on up to 10 hosts. Agents are not charged.

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.

Community

Free

No charge

  • Up to 10 connected hosts
  • Up to 3 agents
  • Community support by email
  • Commercial use is allowed.
Request access

Enterprise

Contact us

  • P1 response within 4 business hours. Support is not 24/7.
  • Invoiced through Paddle by default. A direct dflux Ltd contract is available on request.
Talk to us

Community and Team run on Hosted: we run the gateway, and you install only the bastn connector on your hosts. Enterprise is self-hosted in your network: the gateway, dashboard and Postgres.

FAQ

Questions

All questions

Is bastn an MCP gateway?
Why not just SSH or Teleport plus an MCP server?
Do I have to install something on every host?
Which agents work with bastn?
Who is it not for?

Early access

Give one agent your internal tools, without handing it a shell.

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.

Request access

  1. 01Send the form. Only your email is required.
  2. 02We review each request and email a sign-up link for Hosted.
  3. 03Sign up at app.bastn.ai, connect your first agent and add your first tools.
Only your email is required. No newsletter. We only write about access.