Bastion deploys virtual computers for coding agents.
See the full documentation at bastion.computer.
The following section is for setting up a local dev environment for contributing to the codebase.
- mise for tool and task management.
All required runtimes, compilers, and build tools are managed by mise.toml; you do not need to install them globally.
Install the required tools and JavaScript dependencies from the repository root:
mise installList available tasks:
mise tasks --allRun the same checks used by CI from the repository root:
mise run format:check
mise run lint
mise run build
mise run typecheck
mise run testUse format:write to rewrite formatting locally:
mise run format:writeStart local development services:
mise run dev:upThis opens a bastion-dev tmux session with separate panes for the core API, dev db explorer, docs site, and an interactive shell in the repository root.
To stop the dev environment, exit the panes or run mise run dev:down.
With the dev server running, run CLI commands from a local dev build through mise:
mise run dev:bastion templates listExamples:
mise run dev:bastion templates create --key dev-env --config '{"agents":{"opencode":{}},"actions":{"init":[]}}'
mise run dev:bastion env create --template-key dev-env
mise run dev:bastion env listThe task defaults to http://localhost:3148. Set BASTION_API_URL to target another host API:
BASTION_API_URL=http://localhost:3148 mise run dev:bastion templates listReach out to hazim@bastion.computer or join the Bastion GitHub discussions.