Docs · Guide
Pencil on any model
Pencil (pen.dev) is a design canvas whose agent runs models. It takes custom providers of your own in ~/.pencil/models.json, in Pi's format. packinggoods adds a provider named packinggoods there, so Pencil's model picker lists DeepSeek, GLM, Kimi, Qwen, Claude, a ChatGPT subscription or any other model in packinggoods.
Set up Pencil
- Add a provider in packinggoodsAdd an API key on the Providers page, or sign in to a subscription.
- Set Pencil's provider to packinggoods on the Agents pagePencil's model picker then lists the models packinggoods picked for it.
- Restart Pencil and pick the model in its agent composerPencil reads its custom models at start-up, so restart it once. The model is picked in Pencil's agent composer, not in a file packinggoods reads.
How packinggoods finds Pencil: the ~/.pencil folder, there once the app or pen.dev's CLI has run; on a Mac, an app installed and never opened is found as Pencil.app or pen.dev.app.
models.json
Pencil's settings offer a custom provider on OpenAI Completions, OpenAI Responses or Anthropic Messages, set for the provider as a whole. packinggoods's provider is on OpenAI Completions (Pi's openai-completions) at the gateway's /v1, which the gateway takes for every model:
// ~/.pencil/models.json
{
"providers": {
"packinggoods": {
"name": "packinggoods",
"baseUrl": "http://127.0.0.1:3425/v1",
"api": "openai-completions",
"apiKey": "",
"models": [
{
"id": "deepseek/deepseek-v4-pro",
"name": "…",
"reasoning": …,
"input": ["text", …],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": …,
"maxTokens": …,
"compat": {}
}
]
}
}
} Pencil's requests carry packinggoods's key for Pencil, which is how packinggoods tells them apart, as Pencil's User-Agent isn't known.
Model fields
Each model carries every field Pencil writes for one. Where packinggoods knows no better it uses Pi's defaults: a 128K window and 16K out. Every cost is 0, as packinggoods counts the spend itself. A model's own api and baseUrl are left out: Pi reads them, but Pencil's own editor never writes them.
Your providers stay
The other providers you set up in Pencil stay as they are. A key in packinggoods's provider that packinggoods doesn't write, such as a setting another tool added, stays too. The model list is packinggoods's alone, so a model gone from the catalog leaves it.
Switching back
When you switch Pencil off in packinggoods, packinggoods deletes the packinggoods provider from models.json and leaves your other providers as they were.
FAQ
Can Pencil use DeepSeek or GLM?
Yes. packinggoods adds a packinggoods provider to ~/.pencil/models.json; restart Pencil and pick the model in its agent composer.
Why don't packinggoods's models show in Pencil?
Pencil reads its custom models at start-up. Restart Pencil.
Which protocol does packinggoods's provider use?
OpenAI Completions, at the gateway's /v1, for every model.
Does packinggoods change my other Pencil providers?
No. packinggoods writes only its own packinggoods provider.
More agents on the same models: OpenPencil on any model, WorkBuddy on any model, Pi on any model and Mistral Vibe on any model. Something fails? See Fixing common errors, or ask on Discord.