Postal

An open-source, terminal-based AI coding agent. It reads your code, calls tools, and helps you build.

pip install postalcli

GitHub · PyPI

Demo of Postal running in the terminal

Features

Getting started

Install it:

pip install postalcli

Log in. This authorizes with OpenRouter in your browser; use postal login --paste to enter an API key directly.

postal login

Run it:

postal                 # interactive mode
postal "your prompt"   # single-shot mode
postal --cwd /path     # run against a different directory
postal logout          # remove your saved API key

Approval modes

Every mutating tool call passes through the approval flow first. The mode decides how much Postal asks about, from strictest to most permissive.

Mode Behavior
read-only Rejects anything that is not known safe.
ask Confirms every mutating tool call. This is the default.
auto-edit Edits freely, confirms shell commands.
on fail Runs freely and only asks after a failure.
auto Runs everything except dangerous commands.
yolo Approves everything, including dangerous commands.

Set it with approval in .postal/config.toml, or switch mid-session with /approval <mode>.

Tools

Core:

Sub-agents:

Postal can also connect to external MCP servers for custom tools and data.

Commands

License

Postal is licensed under the GNU General Public License v3.0.


© 2026 Postal contributors. GitHub · PyPI