Browse the docs
On this page

Start here

Getting started

You install Poppet from its source code. You need Git, Bun 1.4.4, and an account with one of the supported providers.

Every message you send uses your provider account’s quota. If you already pay for ChatGPT, start with ChatGPT. It needs no API key. Gemini, OpenRouter, OpenCode, and OpenCode Go use an API key instead. See providers to compare them.

1. Install Poppet#

Install Git and Bun 1.4.4, then download Poppet:

bash / zsh / fish
git clone https://github.com/poppet-run/poppet.git
cd poppet

If you use mise, run mise install in this folder to get the right Bun version. Otherwise, follow Bun’s installation guide.

Install Poppet’s dependencies and add the poppet command:

bash / zsh / fish
bun install --frozen-lockfile
bun link

If your terminal then says it cannot find poppet, add Bun’s command folder to your PATH:

bash / zsh
# Add this line to ~/.zshrc or ~/.bashrc, then open a new terminal
export PATH="$(bun pm bin -g):$PATH"
fish
fish_add_path (bun pm bin -g)

The poppet command runs from the folder you downloaded, so leave that folder where it is. Check that the command works:

bash / zsh / fish
poppet --help

2. Run setup#

bash / zsh / fish
poppet setup

Setup asks you to choose a provider, sign in, and pick a model. It can also connect a messaging gateway, such as Discord, Slack, or Telegram. On macOS, and on Linux with systemd, it offers to start the worker each time you log in. On other systems it shows the command to run the worker yourself.

Setup shows your current settings, then guides you through numbered steps. After you choose a model, it offers a short test request that uses some of your provider quota. You can skip the test. If it fails, you can keep the model or choose another. If sign-in or the model list fails, you can retry, choose another provider, or quit.

Choose the gateways you want from one list. Setup checks their tokens and offers the accounts, servers, or channels it can find. You can also type IDs yourself. If a token check fails, you can retry, continue with an unchecked token, or skip that gateway.

Before saving, review the provider, model, and gateway changes. You can change your answers or cancel. Sign-ins are saved immediately, even if you cancel. Other choices are saved after you approve the review. If setup stops later, completed saves remain.

Setup then offers to install, start, or restart the worker. Restarting can interrupt active answers. It finishes with doctor checks and instructions for starting a conversation. A worker that has just started can show as not responding; check again with poppet doctor.

Change part of your setup#

When you run setup again after saving a provider, you can choose what to change or keep everything. You can also go straight to one part:

bash / zsh / fish
poppet setup provider
poppet setup gateways
poppet setup worker

Provider and gateway setup both finish with the worker step. Unselected configured gateways stay connected unless you confirm removal of their settings and tokens. If setup cannot read a gateway’s saved settings, it marks them unreadable and lets you replace or remove them.

When two or more gateways remain configured, setup asks which home gateway should receive approval prompts for tasks without a destination. It also lets you keep a saved home gateway from an external package.

Setup needs an interactive terminal. If you would rather edit the settings yourself, follow step 3 instead.

3. Connect a provider without setup#

For ChatGPT, sign in through your browser, then list the models your account can use:

bash / zsh / fish
poppet provider login openai-chatgpt
poppet provider models openai-chatgpt
poppet provider status openai-chatgpt

In the browser, pick your account and approve access to your plan, then return to the terminal. The ChatGPT guide covers what you approve and how to sign out.

For an API key, follow the Gemini, OpenRouter, OpenCode, or OpenCode Go guide.

Then save the provider and a model ID from the list in ~/.config/poppet/config.json:

json
{
  "provider": "openai-chatgpt",
  "model": "replace-with-model-id"
}

Never put passwords or API keys in this file. Check that Poppet reads it correctly:

bash / zsh / fish
poppet config

4. Send a message#

bash / zsh / fish
poppet chat new "Help me plan a small TypeScript project"

Poppet prints a Session: line with the conversation’s ID, then writes the answer as it arrives. Poppet saves the conversation under that ID. To continue it, copy the ID:

bash / zsh
session_id='paste-session-id-here'
poppet chat send $session_id "What should I build first?"
fish
set session_id 'paste-session-id-here'
poppet chat send $session_id "What should I build first?"

For a back-and-forth conversation, run poppet chat. Press Enter to send and type /exit to leave. See chat for more.

If a message fails, see troubleshooting.

Add what you need#

You can keep chatting without setting up anything else. When you want more:

In early development