Browse the docs
On this page

Reference

Command line

This page lists every poppet command. Words in angle brackets, such as <task-id>, are placeholders for your own values. Put quotes around messages and values that contain spaces.

For help with any command, add --help:

bash / zsh / fish
poppet --help
poppet tasks add --help

Help works before you set anything up. If you type a command wrong, Poppet shows its help.

Messages that look like options#

Once a message, fact, or task prompt starts, Poppet treats the rest of the command as part of it, including words that look like options. If the text itself starts with -, put -- before it:

bash / zsh / fish
poppet chat new -- "--help is a common flag. What does it do?"

Output for scripts#

Commands print tables and short confirmations, with times in your local time zone. Set NO_COLOR=1 to turn off colour.

Most commands that show information accept --json, which prints every detail as JSON for scripts. Times in JSON are milliseconds since 1970. Put --json before any message text:

bash / zsh / fish
poppet tasks list --json
poppet memory set --json project "Poppet"

Tab completion#

Poppet can complete commands and options when you press Tab. It does not complete session IDs or skill names. Set it up once for your shell, and again after you update Poppet:

bash
mkdir -p ~/.local/share/bash-completion/completions
poppet --completions bash > ~/.local/share/bash-completion/completions/poppet
zsh
# Add ~/.zsh/completions to fpath in ~/.zshrc, before compinit runs:
# fpath=(~/.zsh/completions $fpath)
mkdir -p ~/.zsh/completions
poppet --completions zsh > ~/.zsh/completions/_poppet
fish
mkdir -p ~/.config/fish/completions
poppet --completions fish > ~/.config/fish/completions/poppet.fish

Setup and settings#

CommandWhat it does
setupChoose a provider and model, connect a gateway, and start the worker
setup providerChange the provider and model, then offer worker setup
setup gatewaysChange messaging gateways, then offer worker setup
setup workerSet up only the background worker
configShow your settings and where Poppet found them
doctorCheck your setup for problems
store statusShow where your data is, and how many conversations it holds

setup needs an interactive terminal. It shows your current settings and lets you choose which parts to change. You review provider and gateway changes before saving. Sign-ins are saved immediately. Cancelling before you save keeps those sign-ins; stopping later keeps any completed saves. See getting started and doctor.

Providers#

CommandWhat it does
provider login [provider]Sign in, or save an API key
provider status [provider]Show whether you are signed in
provider models [provider]List the models you can use
provider logout [provider]Sign out, or delete the saved API key
OptionUsed withWhat it does
--no-browserloginPrint a ChatGPT sign-in link instead of opening a browser
--callback-port <port>loginChoose the port ChatGPT sign-in returns to
--forgetlogoutAlso forget your ChatGPT account, so you can switch accounts

Without a provider name, these commands use the provider in config.json. See ChatGPT, Gemini, OpenRouter, OpenCode, and OpenCode Go.

Chat#

CommandWhat it does
chat new <message>Start a conversation
chat send <session-id> <message>Continue a conversation
chat [session-id]Open the interactive prompt
chat sessionsList your conversations
chat show <session-id>Show a conversation and details of each answer
chat search <words>Search your conversations
chat rename <session-id> <title>Rename a conversation
chat delete <session-id>...Delete conversations
chat prune --days <n>Delete conversations with no activity for n days
OptionUsed withWhat it does
--skill <name>chat, newUse a skill for the whole conversation
--attach <path>new, sendAttach a file, and repeat for more files
--dry-runpruneList what would be deleted, without deleting it

Put options before the message. See chat.

Approvals#

CommandWhat it does
approvals, approvals listList pending shell command and MCP approvals
approvals approve <id>Approve one pending action once
approvals deny <id>Deny one pending action
approvals approve <id> --alwaysApprove a pending action and save a reusable rule when supported
approvals rules, approvals rules listList saved rules, use counts, and last use
approvals rules revoke <id>Revoke one saved rule
approvals rules revoke --allRevoke all saved rules

The list shows each approval’s ID, kind, conversation, expiry time, and summary. All approval commands accept --json. Copy an ID from the list to answer a request from web chat, a gateway conversation, or a scheduled task. Expired or already answered requests cannot be answered again.

See answer approvals from the terminal and saved approval rules.

Memory#

CommandWhat it does
memory listList saved facts
memory set <key> <value>Save a fact, or replace it
memory forget <key>Forget a fact
memory history <key>Show every version of a fact
memory revert <key> <version>Go back to an earlier version

See memory.

Skills#

CommandWhat it does
skills listList your skills
skills show <name>Show a skill, or what is wrong with its file

See skills.

Scheduled tasks#

CommandWhat it does
tasks add <name> <prompt>Create a task, with --in, --at, or --cron to set when it runs. Use --approvals fail or --approvals wait to override its approval policy
tasks listList your tasks
tasks show <task-id>Show a task’s runs, results, and note
tasks edit <task-id>Change a task’s name, prompt, schedule, end time, or approval policy. Use --approvals default to inherit tasks.approvals again
tasks run <task-id>Run a task now
tasks pause <task-id>Pause a task
tasks resume <task-id>Resume a paused task
tasks cancel <task-id>Cancel a task’s current or next run
tasks retry <task-id>Run a failed run again
tasks clear-note <task-id>Clear a task’s note
tasks remove <task-id>Delete a task and its history
tasks clearDelete every task and all task history
OptionUsed withWhat it does
--in <delay>addRun once, after a delay such as 30m
--at <time>add, editRun once, at a date and time
--cron <schedule>add, editRun on a repeating schedule, with --tz or your timeZone
--tz <time-zone>add, editSet the time zone for --cron, instead of timeZone
--until <time>add, editEnd a repeating task, or remove the end with none
--skill <name>addFollow a skill
--to <gateway>addPost results to a messaging gateway
--name <name>editRename the task
--prompt <prompt>editChange the prompt
--occurrence <id>cancel, retryChoose a run from tasks show

Put options before the prompt. Each task’s ID is in tasks list. See scheduled tasks.

Worker#

CommandWhat it does
worker runRun the worker in this terminal
worker installStart the worker now and at every login
worker startStart the installed worker
worker stopStop the worker until you start it or next log in
worker restartRestart the worker, cancelling answers in progress
worker statusShow what the worker is doing
worker logsShow the end of the worker’s log
worker uninstallStop the worker starting at login

While the worker runs, other commands go through it. See worker.

Messaging#

poppet setup gateways can connect Discord, Slack, and Telegram for you. These commands connect a gateway without the interactive prompts, for example from a script.

CommandWhat it does
gateway discord setupConnect Discord
gateway slack setupConnect Slack
gateway telegram setupConnect Telegram
OptionUsed withWhat it does
--owner-id <id>discord, slack, telegramSet your user ID
--guild-id <id>discordSet your server ID
--team-id <id>slackSet your workspace ID
--home-channel-id <id>discord, slackSet the home channel’s ID
--chat-id <id>telegramSet the chat’s ID
--home-conversation-id <id>telegramSet the home conversation, if it is not the chat itself
--bot-token <token>telegramSet the bot token

For Discord and Slack, pass the tokens through standard input, to keep them out of your shell history. For Slack, put the bot token on the first line and the app token on the second:

bash / zsh / fish
printf '%s\n' "$DISCORD_BOT_TOKEN" | poppet gateway discord setup --owner-id <user-id> --guild-id <server-id> --home-channel-id <channel-id>
printf '%s\n%s\n' "$SLACK_BOT_TOKEN" "$SLACK_APP_TOKEN" | poppet gateway slack setup --owner-id <user-id> --team-id <workspace-id> --home-channel-id <channel-id>

Telegram takes its bot token as an option. To keep it out of your shell history, read it into a variable first, as the Telegram guide shows.

See Discord, Slack, and Telegram.

MCP#

CommandWhat it does
mcp add <name> <url>Add a remote server
mcp login <name>Sign in to a server
mcp logout <name>Delete a server’s saved sign-in
mcp serversList your servers and their status
mcp tools <name>List a server’s tools and which ones you allowed
mcp allow <name> <tools...>Allow tools
mcp deny <name> <tools...>Stop Poppet using tools
mcp remove <name>Remove a server and its saved key or sign-in
OptionUsed withWhat it does
--auth <type>addChoose how to sign in: none, api-key, or oauth
--no-browserloginPrint a sign-in link instead of opening a browser
--callback-port <port>loginChoose the port sign-in returns to
--allallowAllow every tool the server has now, instead of naming them
--scheduledallowAlso allow the tools in scheduled tasks
--scheduleddenyStop only scheduled tasks using the tools

Restart the worker after you change servers or tools. See MCP tools.

In early development