Browse the docs
On this page

Reference

Configuration

Poppet reads its settings from config.json in your data directory. Getting started covers the provider and model settings you need first. This page covers the rest.

Edit config.json#

The file is ~/.config/poppet/config.json unless you use a different data directory. Every setting is optional, and without the file Poppet uses its defaults. For example:

json
{
  "provider": "openrouter",
  "model": "replace-with-model-id",
  "tasks": { "catchUpMinutes": 60 },
  "chat": { "outputTokens": 2048, "runDeadlineSeconds": 300 }
}

After you edit the file, check it and restart the worker:

bash / zsh / fish
poppet config
poppet worker restart

poppet config shows the settings Poppet will use, and where it found the file. If something is wrong, it names the setting. Common mistakes are a missing comma or quote, a misspelled setting name, a number in quotes, or an empty value. Write paths in full, because Poppet does not expand ~.

New chats and tasks use the new settings. Existing chats and tasks keep the provider and model they started with.

Keep passwords, API keys, and tokens out of config.json. Poppet saves those in separate protected files.

Settings#

SettingDefaultWhat it does
provideropenai-chatgptProvider for new chats and tasks: openai-chatgpt, gemini, openrouter, opencode, or opencode-go
timeZoneNoneYour time zone for scheduled tasks and quiet hours. See time zone.
modelNoneModel ID for new chats and tasks, from poppet provider models
chat.outputTokens2048Longest answer to ask the model for, in tokens, from 1 to 32768
chat.runDeadlineSeconds300Time limit for one answer, from 30 to 3600 seconds
chat.maxConcurrentRequests3How many answers Poppet works on at once, from 1 to 8
chat.logReasoningfalseShow the model’s reasoning, and write it to the worker log. See reasoning and timing logs.
chat.logTimingsfalseWrite how long each step of an answer took to the worker log
tasks.catchUpMinutes60How late a missed repeating task can still run, from 0 to 1440 minutes
tasks.approvalsfailfail or wait. Default for tasks without an override. See wait for approval.
tasks.quietHoursNoneHours when scheduled posts wait. See quiet hours.
mcpServers[]MCP servers and their tools. See MCP tools.
discordNoneYour Discord IDs. See Discord.
slackNoneYour Slack IDs. See Slack.
applicationNamePoppetThe name ChatGPT shows for Poppet when you first sign in
homeGatewayNonePreferred gateway for approval prompts from tasks without a destination. See home gateway.
gatewayPackages[]Extra messaging integrations to load

Telegram has no setting in config.json. Setup saves its IDs with its token. See Telegram.

Install packages listed in gatewayPackages into gateways/node_modules in your data directory. A package made for an older version of Poppet may need an update before it loads.

You can change timeouts, conversation history, and size limits. See timeouts and limits.

Web chat has its own settings file. See web chat.

Home gateway#

When a task has no messaging destination and waits for approval, Poppet needs a home conversation for its approval prompt. Set homeGateway to prefer one of your configured gateways:

json
{
  "homeGateway": "telegram"
}

The worker tries that gateway’s home conversation first. If it is unset, unknown, disabled, or cannot provide a destination, Poppet tries the other enabled gateways in order: Discord, Slack, Telegram, then external integrations. Without a usable home conversation or task destination, a call that needs approval fails the run.

This setting only chooses where approval prompts go for tasks without a destination. Results still go to the task’s saved destination. Tasks without --to keep results on your computer. Run poppet config to inspect the setting, and restart the worker after changing it.

Timeouts and limits#

Set timeouts and limits in config.json when a request needs more time or space. Omit a setting to keep its default. Each value must be a whole number within the listed range. Timeouts are in seconds. Enter byte sizes as numbers, such as 32768 for 32 KiB. One KiB is 1024 bytes, and one MiB is 1048576 bytes.

Run poppet config to check the file and see every resolved value. Restart the worker after changing settings. Larger limits can send more data to your model provider and use more memory.

json
{
  "timeouts": { "inferenceSeconds": 180, "pageFetchSeconds": 30 },
  "limits": { "toolBytes": 32768, "historyTurns": 40 }
}
FieldDefaultRangePurpose
timeouts.inferenceSeconds605 to 3600Time allowed for one model request
timeouts.providerRequestSeconds455 to 3600HTTP timeout for provider requests
timeouts.modelCatalogSeconds301 to 300Gemini, OpenCode, and OpenRouter model-list request
timeouts.modelCatalogCacheSeconds600 to 86400How long a fetched model list is reused; 0 refetches every time
timeouts.actionReviewSeconds301 to 600Automatic review of a Bash command or MCP action
timeouts.sessionTitleSeconds101 to 300Generating a chat session title
timeouts.conversationNamingSeconds101 to 300Renaming a Discord or Slack conversation
timeouts.pageFetchSeconds151 to 300Reading a public page, including redirects
timeouts.mcpConnectSeconds51 to 300Connecting to an MCP server and each tool-list request
timeouts.mcpStartupSeconds81 to 600Starting an MCP server, including discovery
timeouts.mcpToolCallSeconds101 to 3600One MCP tool call
timeouts.taskOperationSeconds81 to 300Creating or changing a task through the worker, and checking its messaging destination
timeouts.approvalSeconds360010 to 86400How long an approval request stays open
timeouts.attachmentDownloadSeconds301 to 600Downloading one messaging attachment
timeouts.gatewayRequestSeconds101 to 300Discord, Slack, and Telegram API requests
timeouts.gatewayRetrySeconds301 to 3600Wait before a messaging adapter reconnects after a failure
timeouts.gatewayRestartMaxSeconds3001 to 3600Longest wait between messaging adapter restarts
timeouts.telegramPollSeconds301 to 50Telegram long-poll duration
FieldDefaultRangePurpose
limits.contextBytes256 KiB16 KiB to 16 MiBContext budget per model request
limits.historyTurns201 to 200Recent exchanges kept in context
limits.modelTurns161 to 128Model turns per run
limits.toolCalls161 to 256Tool calls per run
limits.toolBytes16 KiB1 KiB to 64 KiBSize of one tool result
limits.soulBytes8 KiB1 byte to 64 KiBsoul.md size
limits.profileBytes8 KiB1 byte to 64 KiBprofile.md size
limits.skillIndexBytes8 KiB0 bytes to 64 KiBSkill index size; 0 turns the index and skill tools off
limits.skillIndexEntries641 to 512Skills considered for the index
limits.skillDescriptionBytes24016 bytes to 4 KiBSize of one skill description in the index
limits.skillMentions40 to 32$skill mentions in one message
limits.attachmentsPerMessage40 to 10Files attached to one message
limits.imageBytes5 MiB1 KiB to 20 MiBSize of one image attachment
limits.textFileBytes64 KiB1 KiB to 1 MiBSize of one text attachment
limits.imagesPerRequest80 to 64Images sent in one model request
limits.imageContextBytes6 KiB1 KiB to 64 KiBContext budget counted for each image
limits.replyTextBytes128 KiB4 KiB to 4 MiBAnswer text, and logged reasoning, per run
limits.completionBytes1 MiB16 KiB to 16 MiBSize of the saved provider response, including data needed to continue the chat
limits.pageBytes1 MiB64 KiB to 16 MiBTransferred and decoded page body
limits.mcpTools1281 to 1024Tools discovered from one MCP server
limits.mcpDiscoveryBytes256 KiB16 KiB to 4 MiBTool-list JSON from one MCP server
limits.tasks641 to 1024Saved tasks
limits.chatTaskCreatesPerRun50 to 64Tasks one chat run can create
limits.chatTaskIntervalMinutes51 to 1440Shortest interval for a recurring task created or edited in chat
limits.workerLogBytes5 MiB64 KiB to 256 MiBSize of each background worker log file before rotation
limits.webChatBodyBytes256 KiB64 KiB to 16 MiBWeb chat request body
limits.webChatStreams321 to 256Open web chat event streams

Increasing a timeout does not extend chat.runDeadlineSeconds, the deadline for the whole answer. Provider requests also have their own timeout, so a longer model request can need both inferenceSeconds and providerRequestSeconds increased.

Saved facts, individual skill files, task notes and prompts, the Bash tool’s 300-second maximum, and messaging platform message lengths still have fixed limits. Increasing a setting here does not change those limits.

Time zone#

Set timeZone to a time zone name such as Europe/London or America/New_York:

json
{
  "timeZone": "Europe/London"
}

With timeZone set, Poppet uses your local time when you schedule a task from chat without naming a time zone. Repeating tasks created or edited with --cron also use it when you leave out --tz. Pass --tz when a task needs a different time zone. One-off tasks with --at still need a time zone offset.

Quiet hours use this time zone too, unless you set one inside quietHours. Use a time zone name, not an offset such as +01:00. Restart the worker after you change it.

Quiet hours#

Quiet hours hold scheduled posts to messaging gateways, so they do not arrive overnight:

json
{
  "tasks": {
    "quietHours": { "start": "22:00", "end": "07:30", "timeZone": "Europe/London" }
  }
}

Use 24-hour times. Quiet hours need a time zone name such as Europe/London. If you already set timeZone, you can leave timeZone out of quietHours. If you set both, Poppet uses the one in quietHours. The hours can run past midnight.

Tasks still run on time. Results and failure notices that are ready during quiet hours wait until they end. Replies to your own messages and approval requests are never held.

Restart the worker after you change quiet hours. The new hours also apply to posts that are already waiting. poppet tasks show <task-id> shows when a waiting result will be posted.

Data directory#

Poppet keeps everything in ~/.config/poppet by default. To use another folder, set POPPET_DATA_DIR:

bash / zsh
export POPPET_DATA_DIR="$HOME/.local/share/poppet"
poppet config
fish
set -gx POPPET_DATA_DIR "$HOME/.local/share/poppet"
poppet config

Each data directory has its own settings, sign-ins, and conversations. Set the same value for every command, including when you install the worker. See storage for what the folder contains.

API keys#

poppet provider login saves your Gemini, OpenRouter, OpenCode, or OpenCode Go key in a protected file. It needs an interactive terminal, and shows * in place of each character you type or paste.

To use a key without saving it, set one of these environment variables. It takes the place of the saved key.

VariableProvider
POPPET_GEMINI_API_KEYGemini
POPPET_OPENROUTER_API_KEYOpenRouter
POPPET_OPENCODE_API_KEYOpenCode
POPPET_OPENCODE_GO_API_KEYOpenCode Go

If the variable is set but empty or wrong, Poppet reports an error rather than using the saved key. The background worker cannot see variables from your shell, so save the key with provider login for scheduled tasks and messaging.

poppet provider logout deletes the saved key. It does not cancel the key with the provider. Do that on the provider’s website.

Built-in web search has been removed. Remove webSearchProvider and any older webSearch field from config.json, or Poppet will reject the file. See migrate from built-in search.

Reasoning and timing logs#

Some models think through a problem before they answer. Poppet saves this reasoning with each answer when the provider shares it.

With chat.logReasoning set to true, terminal chats show the reasoning as Poppet works. chat new and the interactive prompt show it under a Thinking heading. When chat send goes through the worker, Poppet also writes the reasoning to the worker log. For scheduled tasks and messaging, Poppet writes the reasoning to the worker log.

With chat.logTimings set to true, Poppet writes how long each step took to the worker log.

Poppet logs up to 128 KiB of reasoning per answer by default. Change this with limits.replyTextBytes. While chat.logReasoning is on, an answer with more reasoning than that fails.

Both are off by default. Reasoning can include private details from your messages and tools, so keep the log private. Neither setting changes how hard the model thinks. Restart the worker after you change them.

In early development