Use your command line AI tools from one place.
Run bram locally and choose one of the commands you’ve set up. It returns the command’s output, exit status and run time. You choose which commands to trust and provide any model or service account.
Open source under 0BSD.
What it does
Local endpoint
Call a configured peer through the CLI or loopback HTTP API. The local service returns the same response format for each command you choose.
Structured results
Get the output, exit status and run time, plus error output when there is any. bram returns the result without judging the model’s answer.
Reviewed adapters
Configure each peer’s executable, arguments and timeout. Peers read prompts on standard input; other interfaces require a wrapper.
Build and install
Use the Go toolchain declared in the repository’s go.mod, with Make and the installer prerequisites in the README. Run these commands from a fresh clone:
git clone https://github.com/Starlit-Digital/bram.git
cd bram
make buildmake build installs the native CLI into ~/.local/bin. Put that directory before Homebrew on PATH. Use make compile for a build that leaves installed tools unchanged. Read the README for supporting assets and platform requirements.
Examples
Try a local echo
Start the daemon in one terminal, then run the query in another. With no existing configuration, the built in echo peer uses /bin/cat and needs no provider account. Review an existing configuration before starting a daemon.
Terminal one
bram daemonTerminal two
bram ask --peer echo "hello from bram"
bram sample-configConfiguring a peer
A peer is a command that reads a prompt on stdin and writes its answer on stdout.
This runnable config keeps echo as the default and adds a helper peer using the same local command. Replace the helper’s command and arguments with your trusted adapter.
Save it to ~/.config/bram/config.json, or $XDG_CONFIG_HOME/bram/config.json when set. sample-config prints JSON; it does not save a file.
{
"listen": "127.0.0.1:7878",
"default_peer": "echo",
"peers": {
"echo": {
"command": "/bin/cat",
"timeout": "10s"
},
"helper": {
"command": "/bin/cat",
"args": [],
"timeout": "2m"
}
}
}The HTTP interface
GET /v1/health and GET /v1/peers let you inspect the daemon. POST /v1/ask sends a prompt to a peer.
Failures return JSON too: 400 for a bad request, 404 for an unknown peer, and 502 for a peer execution failure. Elapsed time varies; empty stderr is omitted.
curl -s http://127.0.0.1:7878/v1/ask \
-H 'content-type: application/json' \
-d '{"peer":"echo","prompt":"hello from bram"}'
# Example response; timing varies:
{
"peer": "echo",
"output": "hello from bram",
"exit_code": 0,
"duration_ms": 2
}The Grok mailbox helper
bram’s bundled grok helper writes your prompt to a folder and waits for a responder to write the answer back. It is a mailbox helper, not an official Grok connection. You supply the program that answers. Use with a real provider still needs testing.
The full source install includes this helper and replaces any existing command named grok in the selected prefix, retaining a backup. The Go-only install does not include it. Read the installation notes before installing.
In the terminal

What to know before using it
The API has no authentication. Keep it on loopback; that does not isolate other users or processes on the machine. Peer commands run with your privileges, may reach the network and may incur provider charges. The optional mailbox helper requires a responder and is not an official provider integration.
Releases and verification
Check the release page for downloads and instructions to verify them. The README explains the current source and tested platforms.
Instructions and help
Help is welcome
You can help with examples, bug reports, tests or clearer instructions. Use made up sample data. Do not share private code, passwords, customer details or logs.