1
Install
2
Initialize a project
Create a project-local
.buttons/ directory so the button belongs to this workspace instead of your global ~/.buttons/ folder:buttons init also writes .buttons/AGENTS.md and adds a Buttons section to AGENTS.md so coding agents know to discover and press existing buttons before writing one-off commands.3
Create a button
Create an HTTP button that fetches weather data:
4
Press it
city into the URL template, and prints the response.5
See the result
--json for structured output. Piped output auto-detects non-TTY and switches to JSON automatically.6
View history
pressed/ folder.What to try next
Code buttons
Run inline shell, Python, or Node scripts.
Prompt buttons
Attach instructions for the consuming agent.
Workflows
Chain buttons into drawers.
Arguments
Typed args with validation.
CLI reference
Full flag reference for create.