Upgrading Pinchy
Pinchy handles most upgrade steps automatically — database migrations run on startup, and the OpenClaw configuration is regenerated from your current settings. A typical upgrade takes under a minute.
Standard upgrade
Section titled “Standard upgrade”-
Take a pre-migration backup
Step 3 below (
docker compose up -d) applies any pending database migrations automatically the moment it restarts — that’s what makes upgrades a one-command affair, but it also means there’s no separate “review the migration first” pause. This backup is your known-good restore point from before any schema change, so create it now, before pulling new images or restarting anything:Terminal window mkdir -p backupsdocker compose exec -T db pg_dump -U pinchy pinchy > backups/pinchy-$(date +%Y%m%d-%H%M%S).sqlKeeping backups under
backups/instead of loose in/opt/pinchy/means they don’t sit next to yourdocker-compose.yml/.env, and the directory is easy to target with your off-host backup rotation. -
Bump the version pin
Edit
/opt/pinchy/.envand updatePINCHY_VERSIONto the new release tag (e.g.PINCHY_VERSION=v0.10.3), then pull the matching images:Terminal window cd /opt/pinchydocker compose pull -
Restart and prune the old image layer
Terminal window docker compose up -d && docker image prune -fup -dapplies any pending database migrations, regenerates the OpenClaw configuration, and restarts all services.docker image prune -fthen removes the previous image layer for each Pinchy service thatpullleft dangling — without this, every upgrade keeps the priorpinchyandpinchy-openclawlayers on disk and a long-running deployment eventually fills its root volume. -
Verify
Confirm the new version is running by hitting
/api/version— this endpoint is public and ignores Domain Lock, so it works from inside the server even when external access is locked to a specific domain:Terminal window curl -s http://localhost:7777/api/version# {"pinchyVersion":"0.5.8","openclawVersion":"2026.6.5","build":"<git sha>","nodeEnv":"production"}Then open Pinchy in your browser at the URL you normally use (e.g.
https://your-domain.example) and check the logs for any warnings:Terminal window docker compose logs pinchy --tail 50
What happens automatically
Section titled “What happens automatically”You don’t need to worry about these — Pinchy handles them on every startup:
- Database migrations — Drizzle ORM tracks which migrations have been applied and only runs new ones. This is idempotent and safe to run repeatedly.
- OpenClaw configuration — Rebuilt from your database state (agents, providers, permissions) every time Pinchy starts. Config format changes between versions are handled transparently.
- Plugins — Copied from the source code into the OpenClaw extensions volume during the Docker build.
- Smithers’ instructions — Smithers answers questions about Pinchy by reading the documentation on demand, and we refresh the underlying instructions on startup so a long-running instance keeps pace with new releases. We only replace a
SOUL.mdwhose text still matches one we shipped — the moment you change a personality in Agent Settings, it’s yours and we leave it alone. The flip side: aSOUL.mdthat matches one of our older versions word for word gets refreshed even if you put it there on purpose, and that applies to any agent, not just Smithers. To keep our text as a starting point, change a line — a single edit is enough to opt out for good.
What you might need to check
Section titled “What you might need to check”- New environment variables — Check the release notes for any new variables. Pinchy won’t crash if they’re missing (features may just be disabled), but review them in your
.envfile. - Docker Compose changes — Most releases reuse the existing
docker-compose.ymland only require bumpingPINCHY_VERSIONin.env. When a release does need a new compose file (new services or volumes), the release notes spell out the extracurlstep. New volumes and services are then created automatically on first start.
Restoring from backup
Section titled “Restoring from backup”If you need to roll back after an upgrade:
-
Stop Pinchy
Terminal window docker compose down -
Restore the database
Pick the backup you want from
backups/(the most recent one is usually what you want):Terminal window docker compose up db -dls -lt backups/ # newest firstdocker compose exec -T db psql -U pinchy pinchy < backups/pinchy-YYYYMMDD-HHMMSS.sql -
Re-pin the previous version
Replace
vX.Y.Zwith the version you want to roll back to (check the Releases page). UpdatePINCHY_VERSIONin.envto match —docker composerefuses to start without it set — and re-fetchdocker-compose.ymlfor that tag if the release notes said it changed:Terminal window sed -i 's/PINCHY_VERSION=.*/PINCHY_VERSION=vX.Y.Z/' .envcurl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/vX.Y.Z/docker-compose.yml -o docker-compose.ymldocker compose pull -
Restart
Terminal window docker compose up -d
The database backup doesn’t hold the PDFs Pinchy converted Word and PowerPoint files to; those live on the pinchy-kb-artifacts volume. When the version you upgraded to converts those files differently, it keeps the older PDFs until it has converted again every file a knowledge-base agent can search, and only then deletes them. Roll back before that and nothing is lost. Roll back after it, and the older version still finds every such file in the search, but a citation of one that hasn’t changed since won’t open its preview, because the PDF it looks for is gone; the original file downloads as usual. If you want previews to survive a rollback, back up that volume alongside the database, the way Backup & recovery describes for the other volumes, and restore it with the database.
Upgrading from v0.10.2 to v0.10.3
Section titled “Upgrading from v0.10.2 to v0.10.3”Breaking changes
Section titled “Breaking changes”None so far.
Upgrade notes
Section titled “Upgrade notes”Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.10.2/PINCHY_VERSION=v0.10.3/' .envdocker compose pull && docker compose up -d && docker image prune -fFiles the knowledge base can’t read are counted and listed
Section titled “Files the knowledge base can’t read are counted and listed”A .tif scan, an old .xls or a .txt on a share used to vanish without a trace: no document, no counter, nothing to look up. A run now counts them as N not supported in the agent’s Index section, and Download the list gives you a CSV with each one’s path and type, so you can convert them or tell users what the agent can’t see. Nothing to configure. The count and the list appear after each agent’s next run. For an agent with knowledge search, the nightly run is enough; any other agent needs Reindex now. Files Pinchy can’t read has the details.
A first index reads current documents first
Section titled “A first index reads current documents first”A reindex used to read files in whatever order it found them, so on a large share the documents people ask about could come last. It now reads every file outside an archived folder first, one folder after another, and the archived ones after that. Most folders are searchable long before the run ends. Scanned PDFs are also sent to your vision model three pages at a time instead of one, which shortens a first index with many scans. Nothing to configure. To speed up embedding, raise PINCHY_CPUS: see CPU when the knowledge base embeds.
See which folders and files a knowledge-base agent can search
Section titled “See which folders and files a knowledge-base agent can search”The Index section of a knowledge-base agent now has a Folders list. It shows each granted folder and the folders directly inside it as searchable, being indexed, queued or needing attention, and Files lists a folder’s files with the state of each. Members see the same list, read-only, from What can this agent search? in the chat. Two new read-only endpoints serve it: GET …/knowledge/folders and GET …/knowledge/files. Nothing to configure. The count of how many files a run found in each folder appears after each agent’s next run; until then a folder’s count is measured against what is in the index. See what the agent can search has the details.
Database migrations
Section titled “Database migrations”The migrations 0080–0081 run automatically on startup — no manual steps. Both are additive.
0080—kb_unsupported_files, the list of files a run found but can’t index, behind the new Download the list in the Index section. It starts empty and fills on each agent’s next run.0081— afolder_plancolumn onkb_index_jobs: how many files each run found per folder, behind the counts in the new Folders list. Empty for runs before the upgrade.
Upgrading from v0.10.1 to v0.10.2
Section titled “Upgrading from v0.10.1 to v0.10.2”Breaking changes
Section titled “Breaking changes”None so far.
Upgrade notes
Section titled “Upgrade notes”Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.10.1/PINCHY_VERSION=v0.10.2/' .envdocker compose pull && docker compose up -d && docker image prune -fOne file the embedding model refuses no longer stops a reindex
Section titled “One file the embedding model refuses no longer stops a reindex”A passage can be dense enough — a table full of numbers, say — that it holds more tokens than the embedding model takes at once. The model then answered Input is longer than the context size, and the whole reindex stopped at that file. The next run stopped at the same file again, so on a large share the first full index never finished. We now measure every passage with the model’s own tokenizer before embedding it and split one that is too long into pieces the model takes. Each piece keeps the page or sheet it came from, so citations still open in the right place.
More generally, anything that goes wrong with one file now costs only that file: it counts as failed in the reindex report, the server log names it, and the run goes on with the next file. Only a problem that would fail every file after it stops the run: the embedding model can’t be loaded or reached, the connection to the database is lost or the database shuts down, or the run is stopped. Nothing to configure. If a reindex kept stopping at the same file, run Reindex now after the upgrade.
Upgrading from v0.10.0 to v0.10.1
Section titled “Upgrading from v0.10.0 to v0.10.1”Breaking changes
Section titled “Breaking changes”None so far.
Upgrade notes
Section titled “Upgrade notes”Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.10.0/PINCHY_VERSION=v0.10.1/' .envdocker compose pull && docker compose up -d && docker image prune -fPINCHY_KB_OCR=off in .env now takes effect
Section titled “PINCHY_KB_OCR=off in .env now takes effect”On v0.10.0, PINCHY_KB_OCR=off in your .env was ignored. We told you in the v0.10.0 notes to set it there to keep scanned pages away from your vision model, but our docker-compose.yml never passed it to the Pinchy container. So OCR stayed on: if you have an Anthropic, Google, OpenAI or Ollama Cloud key, Pinchy picked a vision model from it on its own, and indexing sent scanned pages to that provider. The knowledge.reindex entries in the audit trail show how many documents and pages went to which model since you upgraded. If you set it, scans read on v0.10.0 keep the text already in the index and are not sent again, and from this release on new and changed scans are not sent either. If you never set it, nothing changes: scans still go to your vision model.
Eight more switches the docs tell you to set had the same gap, in every release so far: PINCHY_PROVIDER_BLOCK_PRIVATE_NETWORKS, ALLOW_PRIVATE_URLS, ALLOW_PRIVATE_MAIL_HOSTS, PINCHY_USAGE_POLL_INTERVAL_MS, AUDIT_VERIFY_INTERVAL_MS, and the three Telegram conflict switches TELEGRAM_CONFLICT_AUTO_RESTART, TELEGRAM_CONFLICT_AUTO_DISABLE and TELEGRAM_CONFLICT_RECENT_WINDOW_MS. The new docker-compose.yml passes all nine through. The upgrade commands above fetch it, and docker compose up -d recreates the container with your .env values. Every one of them is listed in Environment variables.
Check your .env before you upgrade. Any of these lines you set once and forgot takes effect now:
PINCHY_PROVIDER_BLOCK_PRIVATE_NETWORKS=1: a custom (OpenAI-compatible) provider saved on a private address shows Not in use afterwards, and agents that use it get errors until you point it elsewhere. Until now, admins could save such addresses despite the setting.ALLOW_PRIVATE_URLS=1orALLOW_PRIVATE_MAIL_HOSTS=1: Odoo and mail connections can now reach your private network. Remove the line if that is not what you want.TELEGRAM_CONFLICT_AUTO_DISABLE=false: if you set it to handle conflicts yourself, the watchdog may still have disabled a newly connected bot. Reconnect it from the agent’s Telegram settings.
If you added any of them to the environment: list of a docker-compose.override.yml as a workaround, you can keep it. The value there wins over .env.
One file the database refuses no longer stops a reindex
Section titled “One file the database refuses no longer stops a reindex”Some PDFs and workbooks carry a NUL character in their text or in a sheet name. PostgreSQL can’t store that character, so it refused the file’s rows, and the whole reindex stopped with an error starting Failed query: insert into "kb_chunks". The database log said invalid byte sequence for encoding "UTF8": 0x00. The next run then stopped at the same file again, so documents after it never got indexed. We now remove NUL from what we read and turn the other invisible control characters into spaces before storing it. Tabs and line breaks stay. If the database still refuses a file’s rows, that file counts as failed in the reindex report and the server log names it. If an earlier version of it was indexed, that version stays searchable. The run goes on with the next file, and the file is tried again on the next run. Nothing to configure. If a reindex stopped this way, run Reindex now after the upgrade.
Upgrading from v0.9.1 to v0.10.0
Section titled “Upgrading from v0.9.1 to v0.10.0”Breaking changes
Section titled “Breaking changes”Knowledge Base agents need one reindex after upgrading
Section titled “Knowledge Base agents need one reindex after upgrading”The knowledge base no longer embeds through Ollama. The embedding model now runs inside Pinchy itself — the same offline embeddinggemma model that already powers agent memory — so there is nothing to pull, nothing to configure, and no Ollama endpoint involved. Indexing and search work on a fully offline install.
The two models produce vectors that cannot be compared, and Postgres cannot change a vector column’s width in place, so the old embeddings can be neither kept nor converted. Migration 0056 clears kb_documents and kb_chunks and recreates the index column at the new width. Your documents are not touched — those tables are derived entirely from the files on disk, and the files stay where they are.
So after upgrading, a Knowledge Base agent finds nothing until it has been reindexed. The nightly reindex does that on its own the first night after the upgrade; to have it back sooner, open the agent’s Permissions tab, and in the Knowledge Base section click Reindex now. Either way that first run is a full index, and on a large corpus it can last well into the next working day — while it runs, Reindex now for any agent answers that a run is already in progress. The run reports its progress inline. How long it takes depends mostly on the CPU the pinchy container gets — CPU when the knowledge base embeds says how Pinchy uses it and how to give it more. If you never set up a Knowledge Base agent, there is nothing to do — the tables were already empty.
The ollama pull bge-m3 step from the v0.9.0 notes no longer applies. If nothing else on your machine uses that model, you can remove it.
The reindex takes more file types now — and scans go to your model provider
Section titled “The reindex takes more file types now — and scans go to your model provider”The same run picks up four things it couldn’t read before: Word documents (.doc and .docx), slide decks (.ppt, .pptx), Excel workbooks (.xlsx, .xlsm), and scanned PDFs. Citations land where each format actually has an anchor — a slide number, a heading, a sheet and row range — and open in the viewer like a PDF page does. Older .xls workbooks, plain text and Markdown are still out; Supported file types has the full split.
Scans are the part worth a look before you upgrade. A page with no text layer is rendered and handed to a vision model — the same one that already reads a scan when an agent opens it in chat — so indexing now sends document content to your model provider. It happens once per document, for every scanned page in the corpus, including documents nobody ever asks about. That’s a wider statement than “only the question and the retrieved snippets leave the building”, so it’s worth deciding rather than discovering.
If that isn’t right for your instance, set PINCHY_KB_OCR=off in your .env before you upgrade — in the same edit as PINCHY_VERSION. Waiting until you click Reindex now is too late: the upgrade empties the index, and the nightly reindex rebuilds it on its own the first night after the upgrade, scans included. Scans are then reported as unsearchable — listed by name, not quietly skipped — and nothing leaves the building. On an air-gapped install there’s nothing to do either way: Pinchy picks the vision model from your configured cloud providers, so a local-only stack has none and never sends anything.
These calls run on your own API key and show up in the Usage Dashboard, and the reindex entry in the audit trail records how many documents and pages were sent, and to which model. What indexing sends to your provider has the rest, including the 200-page-per-document limit.
Deleting in Odoo now requires reading the record first
Section titled “Deleting in Odoo now requires reading the record first”odoo_delete no longer takes record IDs. It takes the opaque references (_pinchy_ref) that odoo_read and odoo_create hand back, so an agent can only delete a record it actually retrieved — from this connection, on the model it says it is deleting. Every other Odoo write tool already worked this way; delete, the one that cannot be undone, was the exception.
Nothing to configure, and agents pick this up on their own from the tool description. Two things are worth checking if you granted Full Odoo access to an agent: it needs read on any model it deletes from, since that is where a reference comes from (the only other source is the odoo_create that made the record), and if you wrote your own instructions telling an agent to call odoo_delete with ids, update them to read the records first and pass targets.
Delete entries in the audit trail now carry the model, the record IDs and the display names, read from Odoo immediately before the delete. See Agent Permissions → Odoo tools.
A license key that didn’t come from us stops working
Section titled “A license key that didn’t come from us stops working”Development builds ship a license key so contributors can exercise enterprise features on their own machine. Until this release that key was signed the same way real customer licenses are, so anyone reading the source could paste it into Settings → License and unlock the paid tier on any install.
Development licenses now carry their own signature, which release builds do not accept, and the old key is refused outright. If your install was activated with that key, it lands in the same state as an expired license on this upgrade: management features lock, and your existing access restrictions stay enforced — restricted agents stay restricted, group-based access keeps working. A refused key never widens access. Nothing is deleted, and everything reactivates the moment a valid key is entered.
Keys we issued are unaffected. Nothing about them changed, and there is nothing to re-enter.
Some saved addresses are refused until you act
Section titled “Some saved addresses are refused until you act”The address checks behind Odoo, mail and OpenAI-compatible providers got stricter. An Odoo URL’s host name is now looked up instead of read as text, the list of internal ranges grew, and a saved address is checked again before it’s used, not only when it was saved. Nothing is deleted — a connection or provider that fails the check keeps its settings and its key — but it stops working on upgrade until you act. What’s affected, by what it takes to fix:
- Set the switch: an Odoo saved by a host name that resolves into your network. This is the one an on-premise Odoo is most likely to meet. Until now Pinchy read an Odoo URL as text and never looked the name up, so
http://erp.internal:8069on10.0.0.5, a container on the same Docker network reached by its service name, or Docker Desktop’shost.docker.internal(192.168.65.254) worked withoutALLOW_PRIVATE_URLS=1— while typing the same IP address was refused. Now the name is resolved, and the connection stops working until you setALLOW_PRIVATE_URLS=1on the Pinchy container and restart it. The same goes forollama.localon Docker Desktop and Linux once you re-fetchdocker-compose.yml, which now maps that name to the Docker host for the Pinchy container too. See An Odoo URL is now checked against the address it resolves to. - Set the switch: an Odoo or mail server at an address that counts as private now, saved without
ALLOW_PRIVATE_URLS=1(Odoo) orALLOW_PRIVATE_MAIL_HOSTS=1(mail). That’s your tailnet (100.64.0.0/10),198.18.0.0/15, IPv6 site-local (fec0::/10), local-use NAT64 (64:ff9b:1::/48), and a NAT64 (64:ff9b::/96) or 6to4 (2002::/16) address that wraps a private IPv4 address. A mail server saved asollama.localbelongs here too on Docker Desktop and Linux, once you re-fetch the compose file: the Pinchy container couldn’t resolve that name before, so the check let it through. The same goes for any Odoo or mail server if the Pinchy host’s DNS runs in fake-IP mode. Set the switch on the Pinchy container and restart. See Fetching web pages no longer reaches Tailscale, cloud-metadata or reserved addresses. - Change the address: an Odoo or mail server at a reserved address, which no switch opens — saved as the address itself, or as a name that resolves to it. That’s
192.0.0.0/24; the documentation ranges192.0.2.0/24,198.51.100.0/24,203.0.113.0/24and2001:db8::/32; multicast (224.0.0.0/4,ff00::/8);240.0.0.0/4, which some networks number internal hosts from — Google Kubernetes Engine allows it for VPC-native clusters; broadcast (255.255.255.255); Teredo (2001::/32) and SIIT (::ffff:0:0:0/96); the cloud metadata endpoints, now including100.100.100.200,168.63.129.16and the IPv6 ones insidefd00::/8(fd00:ec2::254,fd00:ec2::23,fd20:ce::254,fd00:c1::a9fe:a9fe) — those used to count as private, soALLOW_PRIVATE_URLS=1opened all four for Odoo andALLOW_PRIVATE_MAIL_HOSTS=1opened all butfd00:ec2::254, which mail refused already; and a NAT64 or 6to4 address that wraps any of these, or a loopback, link-local or0.0.0.0/8one. Point the connection at an address outside them. - Change the address: an Odoo at loopback, link-local or
0.0.0.0/8, or at a name that resolves there —localhost,127.0.0.0/8,::1,169.254.0.0/16,fe80::/10, a name your hosts file maps to127.0.0.1, and OrbStack’shost.docker.internalandollama.local(0.250.250.254). WithoutALLOW_PRIVATE_URLS=1a name like these was never looked up; with it, the switch turned the check off. Now they’re refused whatever is set. Point the connection at the Odoo host’s network address or container name. Mail was refused these already, with one exception: a mail server saved asollama.localon OrbStack, refused now once you re-fetch the compose file. SeeALLOW_PRIVATE_URLSopens your private network, and nothing else. - Correct the host: a mail connection whose saved IMAP or SMTP host isn’t a plain host name or IP address — a leading or trailing space, brackets around an IPv6 address, a
%, or a non-ASCII name. Edit the host in the connection’s settings. See A saved Odoo or mail connection is checked again before it’s used. - Change the base URL: an OpenAI-compatible provider whose saved base URL is now refused. Pinchy points it at a reserved address that never resolves, so its agents get an error, and marks it Not in use in Settings → AI Provider. That’s a base URL on a cloud metadata endpoint (
100.100.100.200,168.63.129.16, or one of the IPv6 ones insidefd00::/8), in192.0.0.0/24or a documentation range, on Teredo or SIIT, or on a NAT64 or 6to4 address that wraps a loopback, link-local,0.0.0.0/8or reserved one — and on OrbStack,ollama.localonce you re-fetch the compose file. If you setPINCHY_PROVIDER_BLOCK_PRIVATE_NETWORKS=1, it also covers198.18.0.0/15,fec0::/10,64:ff9b:1::/48, a NAT64 or 6to4 address that wraps a private IPv4 address,ollama.localon Docker Desktop and Linux, and — when the Pinchy host’s DNS runs in fake-IP mode — every provider reached by name. See A saved Odoo or mail connection is checked again before it’s used.
Because the check now runs before every use, the same happens to an address saved while a switch was set that has since been removed, to a provider saved before PINCHY_PROVIDER_BLOCK_PRIVATE_NETWORKS=1 was set, and to a name that resolves somewhere else now than when it was saved.
Setting a switch is the whole fix where one applies; nothing needs re-entering. Changing an address is different: when you change an Odoo URL or database, a mail server, port or security setting, or a provider’s base URL, Pinchy asks for the API key or password again, because it never sends a stored secret to a destination it wasn’t entered for. Have it at hand before you edit. Of the mail-host corrections above, only removing a stray space keeps the saved password.
If none of these is your install, there’s nothing to do.
An Odoo URL that redirects stops working
Section titled “An Odoo URL that redirects stops working”Nothing that talks to Odoo works with such a URL any more: Pinchy no longer follows the redirect, so Test connection, saving changes to the connection, schema syncs and the agent’s Odoo tools all fail with an error that names the status. The usual case is an http:// URL in front of a proxy that redirects to https://: change the connection’s URL to the https:// address and enter the API key again with it. See An Odoo URL that redirects now fails instead of being followed.
Email tools send to one recipient per call
Section titled “Email tools send to one recipient per call”email_send and email_draft now take exactly one address in to. A list — "a@x.at, b@y.at", addresses separated by ;, or an array — is refused with an error that tells the agent to send one email per recipient, and so is an address that imitates a separator, such as a fullwidth @, or whose domain isn’t a valid domain name, such as one with a label xn--a that doesn’t decode, or a display name longer than 64 characters, with a run of spaces, or with an invisible or blank-rendering character (emoji are fine, and so are the zero-width non-joiner and joiner that Persian and Indic names carry, such as علیرضا, and so is a single no-break or ideographic space, as in "山田 太郎" <yamada@example.jp>). A display name with a comma or parentheses must be in double quotes — "Müller, Hans" <hans@example.com>; unquoted, it is refused with an error that tells the agent to add the quotes. The mail libraries behind both tools read a recipient string as a list, so a second address tucked behind a comma used to be delivered to as well.
What changes in practice: an agent asked to write to several people, or to draft a reply-all, now produces one email or one draft per recipient instead of a single message to everyone. If you wrote your own agent instructions that pass several addresses at once, update them to send separate emails. Tool confirmation → The card shows what will run has the full rules.
File tools refuse paths that don’t read as their target
Section titled “File tools refuse paths that don’t read as their target”pinchy_write now refuses a path longer than 1,024 characters, with a .. segment, not in its plain form (a . segment, an empty segment such as //, or a trailing /), with an invisible or blank-rendering character (such as a zero-width space, a line separator, or the braille blank U+2800), in decomposed Unicode form (NFD), or with a file or folder name that starts or ends with a space. Each refusal tells the agent why, so it retries with the plain path. Ordinary paths — spaces, umlauts, emoji such as ⚠️ or 👨👩👧, the zero-width non-joiner and joiner that Persian or Indic names carry, such as گزارشها or ශ්රී, the emoji presentation selectors, and visible-width spaces such as the no-break space in a macOS screenshot name included — work as before. pinchy_delete and pinchy_generate_file, both new in this release, follow the same rules; Tool confirmation → The card shows what will run lists where they differ.
One limit follows from the NFC rule. A file stored under a decomposed (NFD) name — typically one copied in from a Mac — is still reached by its composed spelling: the tools look for the other form on disk before they write or delete. What they cannot reach is a path whose parts mix the two forms on disk, such as a composed folder name holding a decomposed file name. There, a write creates a second, composed file next to the original and a delete reports that the file doesn’t exist. Rename such a file to its composed form to work with it.
Odoo checks the name you give beside an account code
Section titled “Odoo checks the name you give beside an account code”Odoo lookups now resolve a GL account or a journal by its code — "6000", or the "6000 Office supplies" form a chart of accounts prints — and the name beside a code has to be the name of the record the code finds. Case, extra spaces and one separator such as "6000 - Office supplies" don’t matter; a different name does. A lookup whose name contradicts its code is refused with the name the code actually carries, so the agent retries with the right one.
One lookup that resolved in v0.9.1 is refused now: {"lookup": {"code": "6000", "name": "Bank fees"}}. v0.9.1 ignored the code and used whichever account is called “Bank fees”. Now that lookup is refused when account 6000 carries another name, and when no account has the code 6000 — then the refusal names the code of the account called “Bank fees”, so the agent sends a code and a name of the same account. Countries are the exception — a country code that names no country leaves the name to decide, as before. See Connect Odoo → How an agent names a record.
Every tool refuses a parameter it doesn’t declare
Section titled “Every tool refuses a parameter it doesn’t declare”A call to a Pinchy tool that carries a field the tool doesn’t take is now refused before the tool runs. In v0.9.1 most tools ignored the extra field; about half of the Odoo tools already refused one. The agent is told and calls again without it. On most model providers the agent runtime refuses the call against the tool’s declared parameters and says the call has fields the tool doesn’t take; on providers whose tool-schema handling drops that check, such as Gemini, the tool refuses it itself and lists the fields it takes.
Two calls change for agents you already run. email_search now refuses an empty query too — v0.9.1 refused only a non-empty one, with a message naming the filters to use. And odoo_delete refuses ids (see above). Both tool descriptions now say what to use instead, so an agent doesn’t need the error to find out.
Upgrade notes
Section titled “Upgrade notes”The standard flow applies:
cd /opt/pinchysed -i 's/^PINCHY_VERSION=.*/PINCHY_VERSION=v0.10.0/' .envdocker compose pull && docker compose up -d && docker image prune -fSecurity: open self-registration is closed — review your user list
Section titled “Security: open self-registration is closed — review your user list”Earlier releases, v0.9.1 included, left the authentication library’s sign-up endpoint reachable. Anyone who could reach your Pinchy URL could create their own account with the member role, bypassing invites and your seat cap. That account could do what any member can: open and chat with every shared agent set to All users, and have it run its tools with your organisation’s credentials — Odoo reads and writes, sending email, web search, whatever that agent was granted. On an install with no licence key, that was every shared agent, because Restricted only takes effect with one; an expired or refused key keeps Restricted enforced. The account got no personal agent and no groups. This release closes it: POST /api/auth/sign-up/* now answers 404 to every client. Accounts are created only by the setup wizard and by claiming an invite.
The same release goes further and turns the library’s endpoints into an allowlist. A client — admin or not — now reaches exactly three of them: sign-in, sign-out and the session lookup. Everything else answers 404, including the user-administration and profile endpoints (/api/auth/admin/*, /update-user, /change-password, /change-email, /delete-user), which bypassed Pinchy’s audit trail and, for admins, the rule that personal agents stay private, and /verify-password, which let anyone holding a stolen session test password guesses outside the sign-in limit. Everything the Pinchy UI does is unchanged — it never used them.
Closing the endpoint doesn’t touch accounts that already used it: they keep signing in. So this release looks for them. Every legitimate account is the admin who ran the setup wizard, someone who claimed an invite, or an admin who has sent one; an account that is none of these most likely signed itself up. On its first start, Pinchy writes one user.unknown_origin_detected row per such account to the audit trail, and Settings → Users lists the ones still active in a banner at the top. Review opens the account; if you don’t recognise it, Deactivate it. Deactivating bans the account, ends all its sessions at once, closes any chat it has open, stops any reply still running in those chats — so the agent starts no further tool for it — and removes its personal agents (DELETE /api/users/:id). Before this release, a chat that was already open kept working after deactivation until the tab was closed. A Telegram reply already running, and automations the account created on shared agents, are out of that reach; User management lists what carries on. Pinchy has no hard delete — a deactivated account stays on record and can be reactivated.
The check treats the earliest-created admin as the setup admin. If you demoted the admin who ran setup and they never sent an invite, they appear in the banner too. For them, and for any other account you recognise, click Mark as known and confirm — it can’t be undone. It works on your own account as well, and it is recorded in the audit trail as user.origin_acknowledged. To run the same check yourself, list the users that no claimed invite points to and that never sent one:
docker compose exec -T db psql -U pinchy pinchy -c " SELECT u.id, u.email, u.role, u.banned, u.created_at FROM \"user\" u WHERE NOT EXISTS (SELECT 1 FROM invites i WHERE i.claimed_by_user_id = u.id AND i.type = 'invite') AND NOT EXISTS (SELECT 1 FROM invites i WHERE i.created_by = u.id) ORDER BY u.created_at;"Apart from your setup admin, every row deserves a look; banned = t means it is already deactivated.
Then find out what each account did. Its sign-up left no trace — registering wrote no audit row, and neither did the session it opened — but everything after it is recorded like any member’s activity, with the account as the actor: its later sign-ins as auth.login, and every tool call an agent made in its chats as tool.<name> (tool.odoo_write, tool.email_send, …). The audit trail filters by account through the API — the user id is in the SQL output above, and in the resource of each user.unknown_origin_detected row: GET /api/audit?actorId=<user id>, or GET /api/audit/export?actorId=<user id> for a CSV of everything. If your instance was reachable from the internet, treat what those agents could read and do as possibly exposed.
The API-key list in Settings → API Keys also now flags keys created by an admin who has since been demoted, not just one who was banned or deleted — consider rotating those.
Memory is now its own permission — and most agents gain it on upgrade
Section titled “Memory is now its own permission — and most agents gain it on upgrade”An agent’s memory used to hang off the Write files permission. Nothing said so, no agent template granted that permission, and the New Agent form quietly ticked it for you — so whether an agent could remember anything depended on a checkbox about files, and any agent created outside that form, including your personal Smithers, had no memory at all.
Memory is now a permission of its own, in its own section of the Permissions tab. Upgrading grants it to the agents that should have it:
- every agent that had Write files, so nothing an agent already wrote becomes unreachable,
- every agent created from a template,
- every personal agent.
An agent created from Custom Agent — Start from scratch gains nothing on that count alone — though most of them qualify under the first rule anyway, because the New Agent form ticked Write files for every agent it created. A from-scratch agent that genuinely holds no permissions stays that way, which is what starting from scratch is supposed to mean; turn memory on for it in Agent Settings → Permissions → Memory if you want it.
Write files keeps its own checkbox, now labelled Create files, and it no longer covers the uploads/ directory. That is where your chat attachments live; agents can still read it, but nothing can overwrite what you uploaded. If you wrote a custom instruction telling an agent to save files into uploads/, point it at workbench/ instead.
An agent can pause and ask before it acts
Section titled “An agent can pause and ask before it acts”Some actions are worth a second look — sending an email, writing to Odoo, deleting a record. You can now mark those per agent, and the agent stops and asks the person in the chat before it runs them. It doesn’t hand the work back and make you start over: it waits mid-turn, and picks the turn straight up again once you approve.
Set it in the agent’s Settings → Permissions, under Require confirmation before. Use recommended ticks the tools that change things and leaves read-only ones alone, so the agent keeps feeling fast.
For Odoo the model table on the same page carries three states per cell — Not allowed, Ask first, Allowed — because “ask before deleting” is usually too broad: an invoice deserves a second look, a note doesn’t, and an agent that stops for both teaches people to click through without reading. A cell you’ve never touched inherits the tool setting above it, so gating deletion covers models you add next month, and setting one cell to Allowed stays an exception.
The confirmation card shows the whole call: every field and its value, every recipient on a line of its own, the server a web address actually reaches when that differs from the one it reads as, and invisible characters spelled out as markers. Only text under a secret-like field name is hidden. A call too large to show in full — more than 100 fields in an object, 200 entries in a list, 200,000 characters in one text or 512,000 in all — is refused before any card opens: the agent is told which limit it crossed and to split the call where that helps, and the audit trail records approval.refused. Ordinary work, such as an Odoo invoice with dozens of lines or a report of a few dozen pages, fits well within these limits.
Nothing changes for your existing agents on upgrade — no tool is gated until you gate one. Worth knowing before you do: a confirmation expires after 10 minutes and the action stays blocked, an approval is per person and good for exactly one action, there’s no “always allow”, and confirmations can only be answered in the Pinchy app — so a gated tool stays blocked on other channels and in scheduled runs, which have nobody to ask. Require confirmation before a tool runs walks through the rest.
AUDIT_HMAC_SECRET in .env now actually does something
Section titled “AUDIT_HMAC_SECRET in .env now actually does something”Pinchy has always read this variable, but the docker-compose.yml we ship never passed it into the container — so if you pinned it the way the hardening guide describes, it had no effect and Pinchy kept signing with the key it generated into the pinchy-secrets volume. It’s forwarded now.
It takes effect the first time you start with the new compose file, so nothing changes until you re-fetch it:
cd /opt/pinchycurl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.10.0/docker-compose.yml -o docker-compose.ymlIf you already have a value in .env, that switches the key your audit trail is signed with. Entries written before the switch keep their old signature, and they’re neither lost nor damaged: Pinchy still holds the previous key in the pinchy-secrets volume, so integrity verification reports those rows as signed with an earlier secret instead of flagging them as tampered. The hash chain is unaffected either way — it links each row to its predecessor’s stored signature, whichever key produced it.
You won’t have to remember which install this happened on: while the pinned value differs from the key in the volume, Pinchy says so in the container log on every start (docker compose logs pinchy). If it logs AUDIT_HMAC_SECRET is set but is not a valid key instead, the value in .env isn’t 64 hex characters: Pinchy ignores it and keeps signing with the key in the volume, so nothing has switched yet. Correcting the value is the switch, so follow Switching the key when you do; removing the line keeps the key you have.
If you’d rather not switch keys, remove the line from .env before you restart, and Pinchy carries on with the generated one. Once you’ve started with it, keeping the new key is usually the safer choice; Switching back to the earlier key explains why. Keep backing up the pinchy-secrets volume either way: after a switch, it holds the only copy of the key that verifies your older entries. Back it up again with .env, see Which backup to restore.
Running several instances against one database? Then the switch has to happen on all of them at once: re-fetch the compose file everywhere, stop every instance, and only then start them again. Don’t roll the upgrade through one instance at a time. Switching the key on several instances explains why, and what you’ll see if it has already happened.
Pin it on a fresh install, or when you run several Pinchy instances against one database. That second case is the one it exists for: without a shared secret each instance derives different actor pseudonyms, and no single instance can show a user’s full history. See Secrets.
A key set only in AUDIT_HMAC_SECRET is now kept in the secrets volume too
Section titled “A key set only in AUDIT_HMAC_SECRET is now kept in the secrets volume too”After a key switch, the earlier key Pinchy verifies older entries against is the file .audit_hmac_secret in the pinchy-secrets volume. A deployment that passed AUDIT_HMAC_SECRET into the container from its first start never got that file, so switching the variable to a new value left everything signed so far unverifiable. Pinchy now writes the variable’s value into the file whenever it starts with the variable set and no key file present, and logs one line naming the directory it wrote to. It never overwrites an existing file.
On such an install, the first start of this version writes the file, and from then on a key switch keeps the old key automatically, as long as /app/secrets sits on a persistent, backed-up volume. The stock docker-compose.yml mounts the pinchy-secrets volume there; if you run Pinchy another way, mount one yourself, or the file goes away with the container. Change the key only after that start, and follow Switching the key. With the stock docker-compose.yml, which forwards the variable only from this version on, the generated file already exists and nothing changes.
An Odoo URL is now checked against the address it resolves to
Section titled “An Odoo URL is now checked against the address it resolves to”The SSRF guard on the Odoo connection routes only ever read the hostname as a string, so a name pointing at 169.254.169.254 or an internal address passed a check that a bare 10.0.0.5 failed. It now resolves the name and classifies every address it gets back.
That closes the hole, and it also catches a setup that used to work by accident: an on-premise Odoo reached by a hostname that resolves into your own network — erp.internal:8069 on 10.x, 172.16–31.x, 192.168.x or an IPv6 unique-local range. Typing its IP address directly was already refused; the hostname now is too. The refusal says so and names the fix — set ALLOW_PRIVATE_URLS=1 on the Pinchy container and restart it. That includes a connection you saved before upgrading: Pinchy checks the saved URL again before it’s used (see below), so its agents’ Odoo tools stop working until the switch is set. Nothing to change if your Odoo’s hostname resolves to a public address from the Pinchy host — which covers every odoo.com instance, unless that host’s DNS answers every name with a fake address (see below). See Odoo on your own network.
Fetching web pages no longer reaches Tailscale, cloud-metadata or reserved addresses
Section titled “Fetching web pages no longer reaches Tailscale, cloud-metadata or reserved addresses”The check behind the Fetch web pages tool, and the one behind the Odoo and mail-server connections, kept separate lists of internal address ranges, and both had holes. Neither knew 100.64.0.0/10 — carrier-grade NAT, which is where Alibaba Cloud serves instance credentials (100.100.100.200) and where every Tailscale node lives. The tool also missed most of fe80::/10, and neither unwrapped NAT64 (64:ff9b::/96). Both now read one shared table. It refuses multicast, broadcast, the documentation ranges and the other reserved ranges (192.0.0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4), and it names the cloud metadata endpoints that sit inside private ranges, where opening your private network would otherwise open them too: 100.100.100.200 (Alibaba Cloud), and on IPv6 fd00:ec2::254 (AWS), fd00:ec2::23 (the EKS Pod Identity Agent), fd20:ce::254 (Google Cloud) and fd00:c1::a9fe:a9fe (Oracle Cloud). It also names one that sits in public space, which none of the old lists caught: 168.63.129.16, Azure’s WireServer, which only answers from inside an Azure VM and hands out its extension configuration, certificates included. 198.18.0.0/15 — benchmarking space that some networks number internal hosts from, and that fake-IP DNS tools such as Clash or Surge answer every name with — counts as private: the tool refuses it, and the Odoo and mail switches below open it. Network address checks lists every range and what each check does with it.
For most installs there is nothing to do. Four setups are affected:
- An Odoo or mail server you reach over Tailscale (a
100.xaddress), at a198.18.x/198.19.xaddress, or at an IPv6 address that counts as private now: site-local (fec0::/10), your own NAT64 translator’s local-use prefix (64:ff9b:1::/48), or a NAT64 (64:ff9b::/96) or 6to4 (2002::/16) address that wraps a private IPv4 address. It used to connect; it is now treated like any other private address. SetALLOW_PRIVATE_URLS=1for Odoo, orALLOW_PRIVATE_MAIL_HOSTS=1for mail, on the Pinchy container and restart it, exactly as for a10.xserver. This includes connections you saved before upgrading: Pinchy now checks a saved address again before it’s used (see below), so until the switch is set such a connection stops working. Nothing needs re-entering; setting the switch and restarting is the whole fix. - An Odoo or mail server at a reserved address. It used to connect; now it’s refused whatever you set. The one most likely to be in use is
240.0.0.0/4, which some networks number internal hosts from — Google Kubernetes Engine allows it for VPC-native clusters. The rest are multicast, broadcast,192.0.0.0/24, the documentation ranges, the metadata endpoints, Teredo and SIIT, and a NAT64 or 6to4 address that wraps one of them. Point the connection at another address; Some saved addresses are refused until you act has every range, and what a changed address asks you to enter again. - A development machine on OrbStack whose Odoo connection reaches the host through
host.docker.internalorollama.local. OrbStack answers both names with0.250.250.254, which is inside0.0.0.0/8— the “this host” range. WithoutALLOW_PRIVATE_URLS=1the name used to go unchecked; with it, the check was off. Now the name is resolved, and the switch no longer opens that range, just as it no longer openslocalhost(see below). Mail never reached the host throughhost.docker.internal, which was always refused for mail; a mail server saved asollama.localdid, and is refused too once you re-fetch the compose file. Point the connection at the container name or the host’s LAN address instead. Docker Desktop (192.168.65.254) and Linux’shost-gateway(172.17.0.1) answer with private addresses, where the switch is enough. Production installs don’t reach Odoo this way. - A Pinchy host whose DNS answers with fake addresses. Proxy tools such as Clash, Mihomo or Surge in fake-IP mode answer every hostname with an address from
198.18.0.0/15and route the traffic themselves. To Pinchy every name then looks private —odoo.comand Gmail’s servers included. The Fetch web pages tool, which has no switch, refuses every URL; Odoo and mail connections needALLOW_PRIVATE_URLS=1/ALLOW_PRIVATE_MAIL_HOSTS=1even for a public server, and with the switch set the check can no longer tell your network from the internet. Keep the Pinchy host out of fake-IP mode instead (these tools have a fake-IP filter or a bypass list), so Pinchy sees the real addresses. The same happens on an IPv6-only network whose DNS64 builds its answers from a local-use NAT64 prefix (64:ff9b:1::/48): every name that only has an IPv4 address gets a private IPv6 address back. The Fetch web pages tool then refuses every IPv4-only site, and every IPv4-only Odoo or mail host needs the switch —odoo.comincluded. A DNS64 on the well-known prefix (64:ff9b::/96) is fine: Pinchy reads the real IPv4 address out of it and checks that one.
See Odoo on your own network and Mail servers on your own network.
The Fetch web pages tool has no such switch and never did: an agent cannot fetch from your own network, and that now includes the tailnet.
The base-URL check for OpenAI-compatible providers kept a third list, and now reads the same table. Endpoints on your LAN or tailnet (and in 198.18.0.0/15) still work out of the box; what changed is that the metadata endpoints above, the reserved ranges, a NAT64 or 6to4 address that carries one of those, and Teredo and SIIT addresses are refused, as 169.254.169.254 already was. If you set PINCHY_PROVIDER_BLOCK_PRIVATE_NETWORKS=1, the ranges that count as private now — 198.18.0.0/15, fec0::/10, 64:ff9b:1::/48 and a NAT64 or 6to4 address that wraps a private IPv4 address — are refused along with the rest of your network. See Which base URLs are allowed.
ALLOW_PRIVATE_URLS opens your private network, and nothing else
Section titled “ALLOW_PRIVATE_URLS opens your private network, and nothing else”ALLOW_PRIVATE_URLS used to switch the Odoo address check off entirely, so an install that set it also let an Odoo connection point at localhost, the cloud metadata services or anything else on the Pinchy host. Now it works like ALLOW_PRIVATE_MAIL_HOSTS: private ranges (including Tailscale and 198.18.0.0/15) open up; loopback, 0.0.0.0/8, link-local, the metadata endpoints listed above and the reserved ranges stay refused whatever you set. If your Odoo connection pointed at localhost, 127.0.0.1, ::1, a link-local address or anything in 0.0.0.0/8 — OrbStack’s host.docker.internal included — it stops working on upgrade, because the saved address is checked again when it’s used. Point it at the Odoo host’s network address or container name instead, and enter the API key again with it: Pinchy never sends a stored key to a new address. One thing the switch does open, because it’s private like any LAN host: the other containers on the Pinchy stack’s Docker network, such as the agent runtime (openclaw) and the database (db), reachable by service name. Set it only if your Odoo really lives on your own network.
A saved Odoo or mail connection is checked again before it’s used
Section titled “A saved Odoo or mail connection is checked again before it’s used”The address checks above used to run only when an admin saved a connection. After that, Pinchy handed the stored Odoo URL or mail host to the agent’s tools, the Test connection button and the inbox sweep without looking at it again — so a connection saved under older rules, or before someone removed ALLOW_PRIVATE_URLS, kept reaching an address the current rules refuse. Now the stored address is checked again before it’s used — each time an agent’s tools fetch the connection, before Test connection and before each inbox sweep — against the same rules and the same switches as when it was saved. The agent’s tools keep a fetched connection for up to 5 minutes, so a switch you remove later takes effect for them within that time, or at once after docker compose up -d --force-recreate openclaw. On upgrade both containers restart, so the new rules apply immediately.
A connection that fails the check breaks nothing else. The agent’s tool reports why, and names the switch if one would allow it; Test connection shows the same message without marking the connection as needing new credentials; an email automation on that mailbox shows an error until it’s fixed. Each refused credential fetch is recorded in the audit trail as integration.credentials_denied with the reason destination-blocked. A mail host must now also be a plain host name or IP address — imap.example.com, mail.example.com., 93.184.216.34 or 2606:4700:4700::1111 — with no spaces, brackets, %, port or zone ID, and an internationalised name in its xn-- form. The check used to tidy the host before looking at it (trim spaces, drop brackets, drop everything from a % on), while the mail client connects to the host exactly as saved; a resolver that reads the raw string differently could then reach an address the check never saw. A saved host like that stops working until it’s corrected in the connection’s settings.
The same now goes for a saved OpenAI-compatible provider. Its base URL is checked again before Pinchy lists its models and each time Pinchy writes the agent runtime’s configuration; a provider that fails the check stays in that configuration with its base URL replaced by a reserved address that never resolves and without its key — its agents get an error instead of reaching the address, it no longer serves as the runtime’s default model, and new agents don’t pick it up as the default either. Settings → AI Provider marks it Not in use and shows the reason when you select it, and the Pinchy log names it too. See Which base URLs are allowed.
Two gaps remain, and we’d rather say so.
- DNS rebinding. The check resolves the hostname, and the Odoo or mail client resolves it again a moment later to connect. A DNS server that answers differently the second time isn’t caught. The Fetch web pages tool pins the address it checked; the Odoo and mail clients don’t yet.
- A name the two containers resolve differently. Pinchy runs the check in its own container; the Odoo and mail tools connect from the agent runtime’s (
openclaw). Ourdocker-compose.ymlused to mapollama.local— the Docker host — in the runtime’s container only, so for Pinchy that name didn’t resolve, the check let it through, and an Odoo URL onollama.localreached the Docker host. The compose file for this release maps it in both containers, so it’s checked as the Docker host’s address like any other. Re-fetch the compose file as described above to pick that up, and if you’ve addedextra_hostsentries of your own to theopenclawservice, add them topinchytoo.
An Odoo URL that redirects now fails instead of being followed
Section titled “An Odoo URL that redirects now fails instead of being followed”The address check reads the Odoo URL you saved, not where Odoo’s answers point. The Odoo client used to follow a redirect, so a public URL that redirected to a refused address — 169.254.169.254, localhost — was still reached, and on a 307 or 308 the API key went along with the request. Odoo’s JSON-RPC never redirects, so now nothing follows one: Test connection, saving a connection, schema syncs and the agent’s Odoo tools fail with an error that names the status, as listing databases already did. The agent tells the person chatting with it that an admin should check the connection in Settings → Integrations.
The setup this catches by accident is an http:// Odoo URL in front of a proxy that redirects to https:// — which Caddy does by default and many Traefik setups configure. Change the URL to the https:// address, and enter the API key again with it: Pinchy never sends a stored key to a new address.
An answer that isn’t JSON-RPC is no longer quoted back either — not in Settings → Integrations, and not to an agent’s Odoo tools, which used to hand the start of it to the model and so to whoever was chatting with it. Settings reports its status and content type, or simply that it wasn’t JSON-RPC; the agent hears only that it wasn’t JSON-RPC. And when Test connection, or saving changes to a connection, gets no Odoo answer at all — a redirect, a proxy error, a network failure, something that isn’t JSON-RPC — it says your login and API key weren’t checked, instead of reporting them as wrong and marking the connection as needing new credentials.
An agent that couldn’t save, or couldn’t see its mailbox, can again
Section titled “An agent that couldn’t save, or couldn’t see its mailbox, can again”The shared-volume mix-up that v0.9.1 fixed for provider keys also reached the agent’s workspace, where the files that brief an agent live. Pinchy and the runtime share one config volume under two different users; if the runtime created one of those files first, it came out owned by the wrong user, and from then on Pinchy couldn’t write it — which stopped the whole config from reaching the runtime.
Two symptoms, one cause, and they didn’t look related. Saving an agent’s settings failed with “Failed to save some settings” and nothing more. And an agent with a connected mailbox insisted it had no email access at all — truthfully, because its email tools never reached the runtime either, while the Permissions tab showed the connection saved.
An affected install repairs itself on upgrade, with no manual step and nothing to configure. Pinchy now takes such a file back the moment it writes it — so the first save after upgrading is already the fix — and the runtime hands them over on start and on every tick as well, which also covers files Pinchy isn’t currently writing.
Saving also tells you what actually happened now, instead of reporting a flat failure. A change that was stored but hasn’t reached the agent yet says exactly that — and so does one that never got stored, which is the case where trying again is the right move. Both name the reason.
Ollama Cloud catalog: one model removed, two gain vision
Section titled “Ollama Cloud catalog: one model removed, two gain vision”Re-verified against the live API. nemotron-3-nano:30b is no longer offered: it now skips the tool call outright in most attempts, which for an agent looks like deciding not to act rather than failing. Any agent pinned to it needs a new model — the fast tier’s general pick (deepseek-v4-flash) is the closest equivalent.
kimi-k2.7-code and qwen3.5:397b can now accept images. Both previously could not — qwen3.5:397b was the model an earlier release note marked text-only for hallucinating image contents — and both read test images correctly now. They become selectable for image work; the default image model is unchanged, so nothing re-routes on its own.
On Anthropic, PDFs and scans are read again — by Claude Sonnet 5
Section titled “On Anthropic, PDFs and scans are read again — by Claude Sonnet 5”Until now Pinchy chose its default Anthropic model from Anthropic’s live model list without checking that it knew the model. It settled on one it had no capability record for, judged it unable to see, and left Anthropic out of PDF and image reading altogether: an install whose only provider is Anthropic had no PDF tool, and the knowledge-base reindex this release asks for would have indexed every scanned page as empty. Pinchy now picks from the models it knows, so on an Anthropic key the default is Claude Sonnet 5 — for new agents, for reading PDFs and images, and for the scanned pages of the reindex. Which model Pinchy picks has the table. Existing agents keep the model they’re on.
A few things you may notice:
- A Custom Agent created on Anthropic before this release may sit on Claude Sonnet 4.5 — the model that old pick landed on. It keeps working, and Pinchy now recognises that it can see images. To move it to the newer default, pick Claude Sonnet 5 in Agent Settings → General.
- Claude Opus 5, Opus 5.5, Sonnet 5.5 and Fable 5.1 show up in the model dropdown, disabled. They need a newer agent runtime than this release ships, and their requests would be rejected. An agent already set to one of them keeps the setting and shows a warning in its settings — move it to Claude Sonnet 5. Enabling them is tracked in #1225.
- Claude Haiku 5.5 stays usable, and now has a price. An agent already on it keeps working as it did on v0.9.1, and you can pick it for new agents. The runtime still doesn’t know the model, so we send it no thinking setting — Anthropic then runs it with adaptive thinking at its default effort (details). Pinchy now knows its 1M-token context window, that it can read images, and its price — $0.10 / $0.50 per million tokens while a request’s prompt is 100,000 tokens or fewer, five times that above. Before, it had no price, so its turns carried no cost estimate; now they do, and they count against budgets. And because the runtime used to size it as a 200K-token model, conversations on Haiku 5.5 compact later now — at about 246K tokens instead of about 184K, under the same 256K cap as the models below.
- Cost estimates on the Usage Dashboard changed for older models, because their prices in Pinchy’s catalog were out of date: Claude Opus 4.7 now reads $5 / $25 per million tokens instead of $15 / $75, and Claude Haiku 4.5 ($1 / $5), GPT-5.5 ($5 / $30), GPT-5.4 ($2.50 / $15), GPT-5.4 Mini ($0.75 / $4.50) and Gemini 2.5 Flash ($0.30 / $2.50) moved to their current list prices too. Past records keep the estimate they were stored with.
- Conversations on Claude Opus 4.7, Claude Sonnet 4.6, GPT-5.5, GPT-5.4 and GPT-5.4 Mini are compacted later. Pinchy’s catalog listed them with context windows of 128K or 200K tokens; they hold 400K to about 1M. Pinchy still caps the working context at 256K tokens, so these agents now compact at about 246K tokens instead of about 112K (GPT) or 184K (Claude). Long conversations keep more history, and their largest turns cost and take correspondingly more.
- Custom OpenAI-compatible providers may report different capabilities. Pinchy fills in context windows and image support for their models from a bundled model list, which this release refreshes from 259 to 542 models. A model that list now marks as able to see — for example
qwen3.5-9b— becomes eligible for image work. If your server runs such a model without image support, images sent to it will fail — give agents that receive images a different model. See Where capabilities come from.
The AI Provider settings are one grid
Section titled “The AI Provider settings are one grid”Settings → AI Provider used to spread providers across separate sections. They’re one grid of tiles now, each with its own logo, sorted so your default comes first and marked so you can see at a glance which one that is. Making a different provider the default is a click on its tile.
Connecting an OpenAI-compatible endpoint lost a step as well: Pinchy asks your endpoint which models it serves and fills in their capabilities from its bundled model list, instead of asking you to pick from a list and then activate what you picked. Where capabilities come from says what that list is.
Your existing providers, keys and default carry over untouched.
Indexing no longer follows links inside Office files
Section titled “Indexing no longer follows links inside Office files”Anyone who can write to a mounted folder can put a Word, PowerPoint or Excel file there, and indexing opens it inside Pinchy’s container — which has a network and can read the agent workspaces. A crafted .docx can point at a URL (a request from inside your Docker network) or at a file on the server, and a converter left to its defaults fetches the one and draws the other into the converted PDF, which every reader of the agent can open. So indexing now converts a .docx or .pptx from a checked copy, with its external links and the parts that are risky to hand to the converter removed. It refuses a file whose content isn’t the format its name claims, and it runs LibreOffice with settings that switch off fetching links. The older .doc and .ppt formats can’t be rewritten, and an RTF file named .doc only has its pictures, embedded objects and field codes removed; those files rely on LibreOffice’s settings, which don’t stop every way a picture embedded in them can read a file on the server. Who can write to the folders you mount is still the strongest protection.
What you may notice: a Word or PowerPoint file that linked a picture, a template or a hyperlink target on another machine converts without them — the text is indexed, the linked picture isn’t drawn, a hyperlink keeps its text but not its destination, and an embedded object shows as its preview picture. A Windows metafile picture (.emf, .wmf) is drawn from its own plain drawing, words included, without anything it carries inside it; one drawn only in EMF+ comes out blank, and one we can’t read unambiguously isn’t drawn. A chunk of another format embedded for the converter to import is removed: the rest of the document is indexed, the chunk isn’t, and the server log names the file. Files that are too big to open safely (a Word or PowerPoint file over 200 MB, a workbook over 100 MB, any Office file that unpacks to far more than it weighs, or to more than it says it will, a Word or PowerPoint file with a single part of text over 64 MB, a workbook with a single sheet over 16 MB — about 40,000 rows of ten columns, which a large export can reach — and a workbook with a single picture over 32 MB), workbooks with a number format no spreadsheet application writes, RTF files named .doc whose structure we can’t read unambiguously, and files that aren’t what their extension says (an HTML page named .doc) are listed as unsearchable instead of being opened, and the server log says which and why. Workbooks are read in a separate process with its own memory and time limit, so one that needs more memory than that is listed the same way rather than taking Pinchy down. One that runs out of time, or whose reader the system stops because the server ran short of memory, counts as failed for that run instead and is read again on the next, and whatever was indexed from an earlier version of it stays searchable. Word and PowerPoint files are checked and copied for the converter in the same kind of process, under the same rules, so a large deck never sits in Pinchy’s own memory. A Word or PowerPoint file put together in a way no Office application writes — a part whose name has . or .. in its path, or a link whose attributes carry a namespace prefix — is listed as unsearchable too, because the converter and our checks could read it two different ways. Supported file types has the numbers. Coming from v0.9.1, every Word and PowerPoint file is converted under these rules from the start: v0.9.1 indexed PDFs only, and the upgrade empties the index anyway (see the breaking change above). Nothing to configure.
Agents read Word documents in a separate process
Section titled “Agents read Word documents in a separate process”When an agent opens a .docx directly, the text is now extracted in a separate process with its own memory and time limit (384 MB, two minutes). Reading a Word document can take many times its own size in memory, and a crafted file only a few kilobytes big could make it take more than the agent runtime has — taking every agent down with it. Now such a file is answered with an error that says it needs more memory than reading may use, and everything else keeps running. Ordinary documents read exactly as before, up to about 8 MB of text and formatting — some 500 pages the way Word writes them; a longer one is answered with an error. A .docx put together in a way no Office application writes, as above, is refused the same way it is by indexing. Nothing to configure.
Documents in archive folders drop out of everyday answers
Section titled “Documents in archive folders drop out of everyday answers”A knowledge-base document now counts as archived if the name of any folder on its path contains old, older, archive, archives, archived, expired, obsolete, Archiv, archiviert, alte, ältere or veraltet as a word of its own, case-insensitively — so OLD/, X_OLD/, xOLD/, Old certificates/ and older versions/ count, and Gold/ and Goldakte/ do not. The rule reads directories only: a file named archive.pdf is not archived. Archived documents are still fully indexed, and the agent can still reach them when a question asks it to; they are simply left out of an ordinary answer. Year and quarter folders (2013/, Q3/) are never archives, and neither is a folder called Alt/. See Current documents first. If you keep superseded files in a folder named something else, rename it — Archive/ will do — to get the same treatment. The first reindex after the upgrade, which every knowledge base needs anyway, applies the rule to everything already indexed.
Indexing never reads through a link
Section titled “Indexing never reads through a link”Indexing always skipped symbolic links when it listed a folder, but the reads after that followed them. So a file swapped for a link while a run was in progress — or reached through a folder swapped for one — was indexed with whatever the link pointed at, under the original file’s name. Anyone who could write to one mounted folder could use that to make an agent quote a document from another team’s folder.
Every read now refuses a link and checks that the file is still a regular file at the place the run listed it; opening a cited document and an agent reading a file directly get the same check. Nothing to configure. A refused file counts as failed for that run, keeps any version indexed before, and is counted as refusedFiles on the reindex entry in the audit trail. A document saved during a run is read normally. Links inside a mounted folder has the details.
Knowledge bases now keep themselves current
Section titled “Knowledge bases now keep themselves current”Until now a knowledge base was as current as its last Reindex now: a document dropped into the folder stayed unsearchable until an admin remembered to click. Pinchy now reindexes every knowledge-base agent once a night, at 02:00 in your organization timezone, so new, changed and deleted documents are reflected the next morning without anyone doing anything. Only what changed is extracted and embedded again; the rest of the run is reading each file once to see whether it did.
It’s on after the upgrade, and the first run is the first night after it — the upgrade itself never starts one. It covers every agent that has the knowledge_search permission and at least one granted folder. To move it out of a backup window or switch it off, go to Settings → Organization → Knowledge Base Indexing; each agent’s Index section says when its next run is.
Three things worth knowing before the first night:
- A large share is read in full every night. Unchanged files are skipped, but only after they’ve been read to see that they’re unchanged, so on a big network share the run takes about as long as copying the folder once. That’s why it runs at night — pick a time your file server is quiet.
- A share that isn’t mounted doesn’t empty the index. Any reindex — nightly or Reindex now — leaves alone the documents of a folder that is missing, unreadable, or suddenly empty while the index still holds documents from it, including a folder inside a granted one. Before, emptying a folder and reindexing removed its documents; now an empty folder looks exactly like a share that failed to mount, so to drop a folder’s documents, delete the folder or take it out of the agent’s grants. A run that had to leave folders out says how many in the Index section, and one that could read none of an agent’s folders is marked failed, saying what to check, instead of reporting “0 indexed”.
- New scans are sent to your vision model during the night they arrive, exactly as a manual reindex would send them, and recorded the same way in the audit trail and the Usage Dashboard.
PINCHY_KB_OCR=offstops that for nightly runs too.
Keeping the index current has the details, including how a missed night is caught up.
Stopping a reply keeps what it already said
Section titled “Stopping a reply keeps what it already said”The chat composer’s stop button has always promised to keep the words already on screen and only stop paying for the rest. It did not always keep them: pressing stop could clear the partial reply a moment later and leave a banner reading “The model provider timed out.” for something you did on purpose.
Both came from the same place. OpenClaw hands a stopped run to Pinchy as an error, and nothing in that error says who ended the run — so Pinchy treated it as a provider failure, wrote a failure banner, and the reply was then discarded by the next background refresh of the conversation. It only happened when that refresh landed in the seconds right after the click, which is why it looked intermittent.
Pinchy now recognises the abort as your own, so a stopped reply stays where it is, no banner appears, and the audit trail records the stop once as chat.run_aborted instead of also as an agent error. Nothing to configure.
Agents can hand you a file in chat
Section titled “Agents can hand you a file in chat”An agent with Write files permission can now turn tabular data it already holds into a CSV, XLSX or PDF and deliver it in the conversation, via the new pinchy_generate_file tool. It rides on the existing permission — no new grant to make, and agents without write access can’t reach it. See Generating files.
Agents can delete a file they wrote
Section titled “Agents can delete a file they wrote”An agent can now remove a file with the new pinchy_delete tool, and deletion is permanent — there is no trash and no undo. It reaches exactly what the agent could already write and nothing else: its own workbench/, and its memory if it has the Memory grant. Your uploads, the knowledge base, and the agent’s own instructions are all outside that boundary and cannot be reached. One file per call, never a directory.
There is no new permission to make. Whoever could put a file into a zone can now take it out of one, so an agent that already has Write files or Memory gains this the moment you upgrade — which is the point: until now an agent asked to forget a topic could only blank the note, and the emptied file kept turning up in its own recall. See Powerful Tools. If you would rather an agent could not delete anything, remove its write grant; there is no way to keep writing and withhold deleting.
A download link now serves the file it was given, not the name
Section titled “A download link now serves the file it was given, not the name”A download chip in chat used to point at a filename. An agent’s workspace is shared by everyone who uses that agent, so anything that later wrote to the same name — an agent rewriting a working file, or simply creating one that shadowed an earlier delivery — changed what the chip handed over, including to somebody whose conversation produced it in the first place.
Each delivery now records where the file was and a checksum of its contents, and a download that no longer matches is refused. Nothing to configure, and no action on upgrade.
Two things to know. Links handed out before this upgrade cannot be checked — there is no honest way to reconstruct what they were given, and guessing from what is on disk today would certify exactly the swap this prevents — so they keep working the way they did. And a link stops working when its file is deleted, or replaced by anything other than the agent working in that same conversation: it returns “not found” instead of serving whatever took its place. Ask the agent for the file again and you get a fresh one. That is also what pinchy_delete above runs into — an agent retiring a file it wrote ends the download link that file was handed out on, and hands out a new one if it writes the file again.
Automations move into the agent
Section titled “Automations move into the agent”Email workflows now have their own Automations tab in an agent’s settings, where you can review, create, enable, disable and delete them. It is visible to admins on shared agents — the same place email access is granted, since a workflow needs a mailbox the agent may read. Existing workflows are listed as-is; nothing changes on upgrade until you edit one.
An agent you may not see now answers “not found”
Section titled “An agent you may not see now answers “not found””Endpoints that gate on your access to an agent used to answer 403 when you asked about one you’re not allowed to see. That told you the agent existed — which, for someone else’s personal agent, is the one thing Pinchy withholds from everybody, admins included. They now answer 404, with the same body an ID that was never issued gets.
Two consequences on the Automations endpoints if you drive the API directly:
GET/POST /api/automationsandGET /api/automations/connectionsanswer404for an agent you can’t see, and keep403for one you can see but may not manage — a shared agent you chat with daily still says so plainly.- Admins reach automations on shared agents, not on a colleague’s personal agent. Opening that agent’s settings has failed the same way since the same change. An admin who already holds a workflow’s ID can still disable or delete it through
PATCH/DELETE /api/automations/:id— a runaway automation stays stoppable.
Four admin-only management endpoints were still answering, and they are the last of it: reindexing an agent’s knowledge base, listing the documents its index cannot search, setting its integration permissions, and connecting a Telegram bot to it. Each looked the agent up by ID and proceeded, so an admin who had a colleague’s agent ID could act on their personal assistant. All four answer 404 there now.
Nothing in Pinchy’s own screens reaches those agents, so day-to-day admin work is unchanged: shared agents, and your own Smithers during Telegram setup, work exactly as before. Two smaller answers changed along with it — GET/DELETE /api/agents/:agentId/integrations and GET /api/agents/:agentId/channels/telegram used to answer 200 for an agent ID that belongs to nothing at all, and now answer 404. Only a script calling those endpoints directly would notice.
Nothing to configure, and nothing changes in the UI.
Provision agents from a script, with an API key
Section titled “Provision agents from a script, with an API key”Agents can be created, listed and deleted over /api/v1/* with an API key now, instead of a browser session. It’s built for CI/CD and infrastructure-as-code — the case that prompted it is resetting a demo or staging instance to a known state on every release, without leaning on database snapshots that break across schema migrations.
Admins issue and revoke keys in Settings → API Keys. Keys carry a pinchy_ prefix so they’re easy to spot in logs, shell history and secret scanners, and they’re scoped: agents:read, agents:write and agents:delete are separate grants, with deletion deliberately its own — it’s irreversible and the highest-impact thing a leaked key could do. A key can’t issue or revoke other keys, so a leaked one can never escalate itself, and everything it does lands in the audit trail.
Nothing to do on upgrade: no keys exist until an admin creates one. Agent Provisioning API has the endpoints and the scope rules.
Changing your password now signs you out on every other device
Section titled “Changing your password now signs you out on every other device”Until now a password change left every existing session alive — including, in the case this action exists for, the stolen one. It now ends all of them. The browser you change it in keeps working; your phone and any second machine ask for the new password the next time they’re used. Tell your users before you upgrade if that would surprise them.
Repeated wrong guesses at the current password are also throttled now — five attempts per account per 10 minutes, after which Pinchy answers 429 and says how long to wait. The account-level rule that was supposed to cover this never applied to Pinchy’s own change-password route, so in practice there was no limit at all. Nothing to configure either way. See Changing your password.
Server logs reach admins only
Section titled “Server logs reach admins only”A bug report filed from inside Pinchy used to carry the server’s recent log lines for anyone signed in. That buffer is process-global — it holds error output from everyone’s sessions, not only the reporter’s — so it now goes to admins alone, and email addresses and secret-shaped strings are stripped out of it on the way in.
Nothing to configure. A member’s bug report now says the logs were left out and asks them to forward it to you rather than to run anything on the host. When one reaches you, docker compose logs pinchy --tail 200 gives you the same lines — unredacted, so read them there before deciding what goes into a public issue.
Pinchy now works out which address a request came from
Section titled “Pinchy now works out which address a request came from”Pinchy sits behind your reverse proxy, so the address it can see on the socket is the proxy’s, not the visitor’s. Three things were reading it anyway: the sign-in brute-force throttle, the WebSocket connection limit, and the auth.csrf_blocked / auth.host_blocked entries in the audit trail. The throttle could be sidestepped by sending a made-up X-Forwarded-For header, the connection limit counted every user on the instance as one, and the audit entries recorded the same address every time — the proxy’s.
All three now read one answer, worked out from the last hop your proxy added to X-Forwarded-For, which is the one hop a visitor cannot choose for themselves.
For most installs there is nothing to do: one reverse proxy in front of Pinchy is what this expects. Two things are worth a look.
Your proxy must add the visitor’s address to X-Forwarded-For. nginx does this with proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;, Caddy and Traefik do it by default. A proxy that passes the visitor’s own header through untouched hands Pinchy an address the visitor chose, and the throttle is only as trustworthy as that header.
More than one hop needs one setting. If something else sits in front of your proxy — Cloudflare, a load balancer, a second nginx — name its addresses so Pinchy walks past them to the visitor:
# in /opt/pinchy/.envPINCHY_TRUSTED_PROXIES=10.0.0.0/8,173.245.48.0/20Comma-separated addresses or CIDR ranges; loopback is trusted already. Leave it unset and sign-ins from behind that extra hop share one throttle bucket, keyed to the hop’s own address — annoying rather than dangerous, but worth avoiding. See Environment variables.
Blocked-request entries in the audit trail now carry clientAddress beside remoteAddress. remoteAddress still means what it always did — the machine that opened the connection, i.e. your proxy — and clientAddressSource tells you whether the client address came from the forwarded header (forwarded) or is just the connection’s own peer because nothing forwarded one (socket).
An invite now needs an email address
Section titled “An invite now needs an email address”The Invite User dialog used to call the email optional, but an invite without one could never be claimed: the account it creates needs an address, so the invitee only ever saw “Failed to create account”. The email is now required, in the dialog and in POST /api/users/invite.
An invite created without an email still can’t be used, and its link now says so up front. Revoke it in Settings → Users and invite the person again with their email. An expired one shows Revoke instead of Resend, because a fresh invite needs an email.
Database migrations
Section titled “Database migrations”The migrations 0056–0079 run automatically on startup — no manual steps. Only 0056 is destructive, and only for the Knowledge Base tables (see the breaking change above); the rest are additive.
0056— recreateskb_chunks.embeddingat 768 dimensions for the bundled in-processembeddinggemmaembedder and clears the two Knowledge Base tables.0057— backfillskb_documents.statusso documents ingested before the archive rule existed are classified by it too.0058—agent_delivered_files, the record behind files an agent hands you in chat.0059— the OpenAI-compatible provider table. A v0.9.0 database already has it (the release branch shipped the same change as its own0056), so this one appliesIF NOT EXISTSand does nothing there.0060— a partial index over failed audit-integrity checks, so the verification report stays fast as the log grows.0061,0062— a Knowledge Base chunk is anchored by a locator (slide, sheet and row range, heading path) instead of a page number, since only PDFs have pages;0062drops the oldpagecolumn once0061has carried every anchor across.0063— byte-level progress on index jobs (total_bytes,processed_bytes) backing the reindex progress bar and its estimate.0064—run_started_atandshow_banneronchat_session_errors, so a run failure’s banner can be dismissed and re-armed per run.0065— theapikeytable behind the Agent Provisioning API, plusapi_keyas an audit actor type.0066,0067— foreign-key and lookup indexes across delivered files, chat-session errors and email workflows;0066also lets an email workflow outlive the user who created it (ON DELETE SET NULL) instead of vanishing with them.0068—tool_approval, the record behind a tool call an agent has to ask about before running it.0069— memory becomes a permission of its own rather than a side effect of file-write access (see the breaking change above).0070,0071—tool_call_idandopenclaw_approval_idontool_approval, so a pending confirmation is tied to the call it is holding up and to the approval OpenClaw raised for it.0072—zoneandcontent_hashonagent_delivered_files, so a download link serves the file it was given rather than the name.0073— thecost_budgetstable, holding the monthly spending limits described in Cost governance. It starts empty, so nothing is limited until an admin sets a budget.0074—triggerandsweep_idonkb_index_jobs, telling a run the nightly reindex started from one an admin asked for, andunavailable_folders, how many folders a run had to leave as they were. Existing jobs are markedmanual, which is what they were.0075—empty_extraction_byandincomplete_readsonkb_documents. The first records which extractor found no text in a document, so the nightly reindex stops reading an unchanged blank scan again — and sending it to your vision model again — every night. The second counts reads that didn’t finish (a failed vision call, a failed conversion), so those are retried for up to five runs rather than forever. Rows that predate them carry nothing, so each empty document is read once more on the next run and recorded from then on.0076—impersonated_byonsession, a column the admin plugin of Pinchy’s sign-in library expects to find. Pinchy never signs in as another user, so it stays empty.0077—artifact_format_versiononkb_documents: which version of the rules for converting Word and PowerPoint files a document’s indexed text comes from, so a later change to those rules knows which documents to convert again.0078—upgradeas a thirdtriggeronkb_index_jobs, for the reindex Pinchy starts on its own after such a change.0079—artifact_format_versiononkb_index_jobs: the version of those rules a run converted under, so a run from before the upgrade doesn’t count as one that already converted a folder’s files under the new rules. Jobs that predate it carry nothing, and count as runs under earlier rules.
Upgrading from v0.9.0 to v0.9.1
Section titled “Upgrading from v0.9.0 to v0.9.1”Breaking changes
Section titled “Breaking changes”None. This is a bugfix release: no schema migration, no compose change, no configuration you have to touch. The standard flow is the whole upgrade:
cd /opt/pinchysed -i 's/^PINCHY_VERSION=.*/PINCHY_VERSION=v0.9.1/' .envdocker compose pull && docker compose up -d && docker image prune -fUpgrade notes
Section titled “Upgrade notes”The domain lock no longer turns away Pinchy’s own plugins
Section titled “The domain lock no longer turns away Pinchy’s own plugins”The one to upgrade for if you have locked your domain — which the hardening guide tells you to do. The host check waved internal plugin routes through by naming them one at a time, and the list had fallen behind the code. Three routes were missing from it, so on a domain-locked instance each was answered 403 Forbidden: request host does not match the configured domain:
/api/internal/knowledge/search— the knowledge base did not work at all. Everyknowledge_searchfailed, and a knowledge-base agent could only tell you it couldn’t reach its documents./api/internal/channel-messages— Telegram conversations were not captured into Pinchy’s own store, so a chat could be listed and then open empty./api/internal/integrations/:id/report-auth-failure— an integration whose credentials had expired could not say so.
None of this was visible: the plugins reach Pinchy on a Docker-internal hostname that by construction never matches your public domain, and a rejected request left no trace on the Pinchy side. Both are fixed. The whole /api/internal/ prefix is now exempt by rule rather than by list, so a future plugin route cannot go missing the same way, and a blocked /api/ request writes an auth.host_blocked audit row.
Nothing to configure. If you run with a domain lock, re-index your knowledge-base agents after upgrading — indexing itself was never blocked, but if you tried and gave up, this is why.
The internal credentials endpoint now checks which agent is asking
Section titled “The internal credentials endpoint now checks which agent is asking”Worth upgrading for on a multi-agent instance. GET /api/internal/integrations/:connectionId/credentials authorized on the gateway token alone. That token is a single shared secret inlined into every plugin’s config, so it proved that something inside the OpenClaw container was asking — and nothing about whether the caller had a claim to the connection it named. A plugin could name any connection id and receive decrypted credentials belonging to a different agent.
Callers now identify their agent and the grant is verified before anything is decrypted. Nothing to configure; the plugins in this release pass the identity themselves. A refused request is audited as integration.credentials_denied, carrying the agent, the connection id, and whether the agent was unknown or simply not granted — worth a look after upgrading if you run agents with different connection scopes.
Chat now survives a backgrounded tab
Section titled “Chat now survives a backgrounded tab”If you use Pinchy on a phone, as an installed PWA, or just leave a tab in the background, the chat connection could come back in a state where the thread was missing recent messages until you reloaded. The websocket now pauses its reconnect loop while the tab is hidden, closes cleanly after a grace period, resumes the moment the tab is visible again, and reconciles the thread history over the connection it already has. A request for that history is bounded by a deadline, so a stall surfaces as an error instead of an empty thread that looks like a lost conversation.
The security banner no longer fires on a local install
Section titled “The security banner no longer fires on a local install”Running on http://localhost produced a red banner telling you to lock your domain for HTTPS hardening — advice you cannot act on, because there is no domain and the browser already treats localhost as a secure context. The banner now reads the request origin rather than the build mode, so it stays silent on loopback and still appears on a production deployment that happens to boot in development mode.
A failed migration says what failed
Section titled “A failed migration says what failed”The boot migration reported a guess at which file had broken, derived from a count rather than from the failure itself. It now names the target and reports the actual error. Mechanically, the boot step moved from the drizzle-kit CLI, which swallowed failures, to drizzle-orm’s own migrator (scripts/db-migrate.mjs); nothing changes for you at upgrade time.
Audit-chain verification no longer steps over rows
Section titled “Audit-chain verification no longer steps over rows”The verify sweep could skip rows written while it was running, and its checkpoint could stall when the concurrency probe failed. Both are fixed. If you have been running periodic verification, earlier “clean” results covered slightly less than they claimed — re-run a full verification once after upgrading if you rely on those reports.
A provider key that can’t reach the runtime now says so
Section titled “A provider key that can’t reach the runtime now says so”Pinchy and the agent runtime share one config volume under two different users, and each agent has a directory in it that both of them write to. If the runtime got there first, the directory came out owned by the wrong user and Pinchy could no longer store that agent’s credentials — which stopped the whole config from reaching the runtime. The agent then simply stopped answering, with the real reason only in docker compose logs pinchy.
The runtime now hands that directory back on start and on every tick, so the case should not arise. If it ever does, saving a provider key tells you plainly that it saved but couldn’t be applied, and the affected agent says it has no API key instead of going quiet. Nothing to configure.
Knowledge-base agents created before this upgrade need one edit
Section titled “Knowledge-base agents created before this upgrade need one edit”Knowledge-base agents were set up with an instruction to list and read their files before answering. That instruction outranked the template’s own “search first”, so the agent walked the folder tree instead of searching — and answers assembled from whole files carry no citation numbers, because those come from retrieval, not from reading a file.
How far it goes depends on the model. A strong one obeys both instructions: it lists the folder first and then searches anyway, so the answer still cites and the only cost is a wasted tool call on every question. A weaker one stops at the file it found. Either way the instruction is pulling against the agent’s own job, so it is worth removing even from an agent that looks fine.
New agents no longer get that instruction. Existing ones keep it: their operating instructions were written once, at creation, and an upgrade does not rewrite them. To check an agent, ask it something and look at Audit Trail — a tool.pinchy_ls before its tool.knowledge_search is the instruction at work. To fix it, open Agent → Settings → Instructions and shorten its ## File Access block to what a new agent gets:
## Document Access
Your documents are in:
- `/data/handbook`Keep whichever paths the old block listed — the agent still needs to know where its documents live. What goes is the numbered “Always start with pinchy_ls” workflow below them. Nothing else needs to change; the tools describe themselves, and knowledge_search states its own priority.
Upgrading from v0.8.0 to v0.9.0
Section titled “Upgrading from v0.8.0 to v0.9.0”Breaking changes
Section titled “Breaking changes”Re-fetch docker-compose.yml — the database image changed
Section titled “Re-fetch docker-compose.yml — the database image changed”This release adds Knowledge Base agents, whose search index is built on the pgvector Postgres extension. The database migrations enable that extension on startup, and the stock postgres:17 image doesn’t ship it — so the db service now uses pgvector/pgvector:pg17-trixie instead.
Re-fetch the compose file before pulling images:
cd /opt/pinchycurl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.9.0/docker-compose.yml -o docker-compose.ymlsed -i 's/^PINCHY_VERSION=.*/PINCHY_VERSION=v0.9.0/' .envdocker compose pull && docker compose up -d && docker image prune -fYour data is safe across the image swap: it’s the same PostgreSQL 17 on the same Debian base, reading the same pgdata volume in place — only the pgvector library is added. Both images are larger this release (the agent runtime now bundles an offline embedding model), so expect a bigger pull; the docker image prune -f from the standard flow keeps disk in check.
Upgrade notes
Section titled “Upgrade notes”First boot may take longer on installations with a lot of history
Section titled “First boot may take longer on installations with a lot of history”The migrations build new indexes over your audit log and usage records. On an instance with months of history this can take a few minutes, during which Pinchy reports “unhealthy”. If docker compose up -d gives up waiting and the openclaw service doesn’t start (“dependency failed to start”), wait for docker compose logs pinchy to show the server starting, then run docker compose up -d once more.
Container resource limits are now set by default
Section titled “Container resource limits are now set by default”The compose file now caps each service (pinchy 1 GB, openclaw 2 GB, db 1 GB memory, plus CPU limits) so one runaway container can’t take down the host. Deployments that routinely needed more will see the container restarted by the kernel instead. Every limit is overridable in .env — see Customizing your deployment. After upgrading, docker inspect --format '{{.State.OOMKilled}}' pinchy-openclaw-1 (and the other containers) tells you whether a limit is too tight for your workload.
Knowledge Base agents (new, opt-in)
Section titled “Knowledge Base agents (new, opt-in)”Agents can now answer from your own documents with cited sources, backed by a search index in Pinchy’s Postgres. Nothing is indexed until you set it up: mount document directories, pull the embedding model on your local Ollama (ollama pull bge-m3), create an agent from the new Knowledge Base template, and trigger indexing. See Create a Knowledge Base agent. If you don’t use it, nothing changes for you.
Agent memory recall now works offline
Section titled “Agent memory recall now works offline”The agent runtime image bundles a local embedding model, so agents’ memory search works on every install — including fully offline ones — with no API key. Installs where memory recall silently returned nothing will notice agents actually remembering things. The memory index rebuilds automatically in the background after the upgrade; brief extra CPU on the openclaw container in the first minutes is expected.
Shared agents no longer bring private memory into group chats
Section titled “Shared agents no longer bring private memory into group chats”A shared agent’s MEMORY.md — what it learned in one-to-one conversations — is no longer injected into Telegram group sessions, so notes from private chats can’t surface in front of a group. Shared agents may appear to “know less” in groups; that’s the privacy fix working.
Old channel attachments are cleaned up after 48 hours
Section titled “Old channel attachments are cleaned up after 48 hours”Inbound channel media (Telegram photos, documents) is now copied into the agent workspace on arrival, and the runtime’s internal media cache is swept after 48 hours instead of growing forever. Attachments received before this upgrade were never copied, so ones older than 48 hours are removed by the first sweep and may no longer open from old conversations. Export anything you still need from pre-upgrade chats before upgrading.
Workspace terminals stay disabled
Section titled “Workspace terminals stay disabled”The OpenClaw runtime this release ships (2026.7.1) adds an interactive terminal into agent workspaces. Pinchy pins it off: a shell would bypass agent permission allow-lists and the audit trail. It will return as an RBAC-scoped, audited feature.
Deleting a user keeps their invite history
Section titled “Deleting a user keeps their invite history”Invites are audit-relevant history — who was invited, by whom, and when the invite was claimed. Deleting a user who had claimed an invite now keeps that invite record and simply clears the claimer reference, instead of the previous behaviour where the foreign key blocked the deletion. Every other reference to a user still cascades; only this one is retained on purpose. Nothing to configure.
Database migrations
Section titled “Database migrations”Thirteen additive migrations (0044–0056) run automatically on startup — no manual steps. No data is dropped or destructively rewritten; existing rows already satisfy every new constraint.
0044— schema hardening: four timestamp columns toNOT NULL, foreign-key and hot-path composite indexes,CHECKconstraints on the enum-like text columns (roles, agent visibility, invite/connection types and statuses), and theinvites.claimed_by_user_idforeign key switched toON DELETE SET NULL.0045— per-agent starter prompts (agents.starter_prompts, defaults to empty).0046,0048— GDPR crypto-erasure groundwork: a pseudonymized actor ID onuser(backfilled, then defaulted and madeUNIQUE/NOT NULL) plus theaudit_verify_statetable backing periodic incremental chain verification.0047— audit-logTRUNCATEguard (statement-level trigger) closing the row-trigger gap.0049–0051— tables and constraints for email inbox workflows (foundation; no runtime surface in this release).0052— notifications / activity-feed tables (foundation; no runtime surface in this release).0053— per-turn context-window usage tracking (usage_records.context_tokens).0054— Knowledge Base tables (kb_documents,kb_chunks) with the pgvector index; enables thevectorextension (see the breaking change above).0055— the Knowledge Base async index-job queue (kb_index_jobs) backing the background reindex.0056— theopenai_compatible_providerstable, behind connecting an OpenAI-compatible endpoint. This number belongs to the v0.9.x line only: the same table reaches later releases as0059, which is why that one creates itIF NOT EXISTS.
Upgrading from v0.7.0 to v0.8.0
Section titled “Upgrading from v0.7.0 to v0.8.0”Breaking changes
Section titled “Breaking changes”email_search now uses a structured DSL instead of a raw Gmail query string
Section titled “email_search now uses a structured DSL instead of a raw Gmail query string”The email_search tool previously accepted a raw Gmail query string via a query parameter. It now requires a structured filter object. If your agents called email_search with a query field, update them to use the new fields.
Before (no longer supported):
email_search({ query: "from:alice@example.com is:unread" })After (structured DSL):
email_search({ from: "alice@example.com", unread: true })Available filter fields: from, to, subject, text, unread, sinceDays, folder, limit. text is a free-text match across sender, subject, and body — use it for a content match (an invoice number, an order ID, a phrase from the message) that subject alone can’t express. See the email_search tool description in your agent’s tool list for the full field reference. The structured DSL is provider-agnostic — the same filters work for both Gmail and the new Microsoft 365 backend.
The tighter agent tool boundary described below also changes runtime behaviour for existing agents, but it only removes built-ins that were never meant to be reachable — see the note under Upgrade notes.
Upgrade notes
Section titled “Upgrade notes”The standard flow applies:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.7.0/PINCHY_VERSION=v0.8.0/' .envdocker compose pull && docker compose up -d && docker image prune -fMicrosoft 365 (Outlook) email
Section titled “Microsoft 365 (Outlook) email”v0.8.0 adds Microsoft 365 (Outlook) email support alongside Gmail. Connect a Microsoft work/school account under Settings → Integrations, and agents get the same email_list, email_read, email_search, email_get_attachment, email_draft, and email_send tools — backed by the Microsoft Graph API and governed by the same per-agent email permissions. Existing Gmail connections are unaffected.
Each email operation (Read, Create drafts, Send) is granted independently in the Permissions tab — checking one does not grant the others. If you’re upgrading an agent that relied on Send also implying Read or Draft, re-check the operations it needs.
Legacy permission vocabulary. Agents created before this release may still have their email permissions stored as legacy per-tool rows (search, list) instead of the current read operation. Pinchy treats search and list as aliases of read — they unlock the exact same read-only toolset and never unlock draft or send. The Permissions UI displays these agents’ rows as Read messages, and saving the agent’s permissions normalizes them to the current read vocabulary. No action needed.
Tamper-evident audit log (hash-chained)
Section titled “Tamper-evident audit log (hash-chained)”The audit log now binds every row into an HMAC hash-chain: each row’s signature includes its predecessor’s, so deleting a row from the middle, truncating the tail, or reordering history breaks the chain — not just editing a field. verifyIntegrity checks each link and reports any breaks. Historical rows are never re-signed — existing entries stay verifiable under their original signature, and the chain starts binding from the upgrade onward. Nothing to configure.
Tighter tool boundary for agents
Section titled “Tighter tool boundary for agents”Governed agents now run against a fail-closed allowlist — exactly the audited Pinchy plugin tools plus a few read-only built-ins (memory_search, memory_get, pdf, image, session_status) — instead of a deny-list that left powerful built-ins silently reachable and unaudited. Anything not on the list — cron, gateway, message, nodes, subagents/sessions_*, the tts/image_generate/music_generate/video_generate generators, and any built-in a future OpenClaw version adds — is now denied by default. Existing agents pick this up automatically when their OpenClaw config regenerates on startup; there’s no migration and nothing to configure. These built-ins were never an audited Pinchy capability, so no governed agent should notice — and they’re denied by design, not re-grantable through agent permissions.
Security hardening
Section titled “Security hardening”A round of fixes from this cycle that need no action on your part:
- attachment downloads now enforce per-user ownership (closes an IDOR gap)
- deactivating a user immediately revokes their active sessions
- the file-write path resolves symlinks before writing
- audit and usage CSV exports neutralize spreadsheet formula injection
webFetchcaps response bodies to bound memory use
Models: self-healing config and smarter vision routing
Section titled “Models: self-healing config and smarter vision routing”- Pinchy now self-heals its OpenClaw config when a dispatch hits a retired model, instead of leaving the agent stuck on an unavailable model.
- Ollama Cloud vision models resolve against the live catalog, and
kimi-k2.7-codejoins the curated catalog. - Image reads route through the audited
pinchy_readtool (with its own resolved vision model) rather than OpenClaw’s built-in image tool, and image-turn fallbacks pick the best-vision model while honouring the tools blocklist.
Chat quality-of-life
Section titled “Chat quality-of-life”- The composer keeps your unsent draft across reloads, scoped per conversation.
- Selecting an agent reopens your last-viewed conversation.
- Agents now carry brand-themed avatars.
Telegram conversations from before the upgrade
Section titled “Telegram conversations from before the upgrade”Telegram conversations that predate Pinchy’s own transcript store now render through an OpenClaw history fallback, so upgrading no longer leaves older chats blank. The Telegram channel also shows as a titled icon in the chat list.
Dependencies
Section titled “Dependencies”- OpenClaw 2026.6.11 (was 2026.6.8) — picked up via
Dockerfile.openclaw, surfaced inGET /api/version. Same protocol train; backward-compatible patch bump.
Database migrations
Section titled “Database migrations”One additive migration runs automatically on startup — no manual steps:
0043— adds the nullableprev_hmaccolumn toaudit_log, backing the tamper-evident audit hash-chain.
Upgrading from v0.6.0 to v0.7.0
Section titled “Upgrading from v0.6.0 to v0.7.0”Breaking changes
Section titled “Breaking changes”None.
Upgrade notes
Section titled “Upgrade notes”The standard flow applies:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.6.0/PINCHY_VERSION=v0.7.0/' .envdocker compose pull && docker compose up -d && docker image prune -fOne last sign-in, then your session survives updates
Section titled “One last sign-in, then your session survives updates”Until now, every update could silently sign you out. On HTTPS/domain-locked instances the session cookie’s name depended on a value that was computed nondeterministically at startup, so it sometimes changed between container versions and orphaned your existing login. v0.7.0 pins that decision to the domain-lock state via a stable, persisted flag, so the cookie name no longer changes across restarts.
One transitional effect: this upgrade may sign you out one final time as the cookie name settles onto the stable value. The flag is reconciled before the server starts, so the very first boot already uses the stable cookie name — no second sign-out, and Secure cookies are never briefly downgraded. After that, logins persist across updates as expected. Nothing to configure — just sign back in once if prompted.
One-click deploys: DigitalOcean Marketplace and CapRover
Section titled “One-click deploys: DigitalOcean Marketplace and CapRover”Spinning up a fresh Pinchy is now a one-click affair on two more platforms: a DigitalOcean Marketplace 1-Click image and a CapRover one-click app template. Existing installs need nothing here — this only adds new install paths. Both templates are version-pinned to the release.
Agent skills
Section titled “Agent skills”Agents now carry a skills allowlist (migration 0042 adds the column, defaulting to none). This release lays the foundation plus a web-search skill pilot and a market-monitor template. Existing agents are unaffected until you assign skills in their settings.
Pinchy-owned chat transcript
Section titled “Pinchy-owned chat transcript”Pinchy now mirrors conversations into its own store (channel_messages) via the pinchy-transcript plugin, instead of relying solely on OpenClaw’s session-scoped history. The transcript is immune to /new, daily resets, and compaction, and backs the read-only channel views. Nothing to configure; the mirror starts filling from the upgrade onward.
Durable “paused” error banner
Section titled “Durable “paused” error banner”When an agent run fails, the chat now shows a persistent banner above the composer with honest, cause-specific wording, instead of a transient message that vanishes on reload. The active error is stored (chat_session_errors), exposed via GET/dismiss endpoints, and swept once resolved. Reload-safe; nothing to configure.
Audit detail sheet
Section titled “Audit detail sheet”The audit entry-detail sheet is wider and its JSON payload is now one-click copyable — easier to pull a full audit record for review or an incident report.
Dependencies
Section titled “Dependencies”- OpenClaw 2026.6.8 (was 2026.6.5) — picked up via
Dockerfile.openclaw, surfaced inGET /api/version. Same protocol train; backward-compatible patch bump. The runtime image is now a slimmer multi-stage build (faster pulls), with no behavioural change.
Database migrations
Section titled “Database migrations”Three additive migrations run automatically on startup — no manual steps, nothing you’d miss:
0040—channel_messagestable (the Pinchy-owned transcript mirror).0041—chat_session_errorstable (the durable paused-error banner).0042— adds theskillscolumn toagents(defaults to empty) for the agent-skills allowlist.
Upgrading from v0.5.8 to v0.6.0
Section titled “Upgrading from v0.5.8 to v0.6.0”Breaking changes
Section titled “Breaking changes”Telegram and web no longer share one conversation
Section titled “Telegram and web no longer share one conversation”Pinchy now uses per-chat sessions. Web and Telegram are separate OpenClaw sessions instead of being folded into one. Previously, an agent linked to a Telegram peer merged that peer’s DMs into the user’s web chat — which is why a Telegram /new could wipe web history. Starting with v0.6.0, each Telegram peer gets its own session and shows up as a read-only chat in the agent’s Chats list.
- No action required. The stale link is removed automatically the next time the OpenClaw config is regenerated (any settings save, or the first boot after the upgrade). Permissions are unaffected — the Chats list and Telegram allow-listing read channel links directly, not the removed setting.
- Where your history goes. Your existing web conversation keeps everything under its current session, including Telegram messages that were previously merged in. Telegram starts a fresh, separate thread from the upgrade onward — so a Telegram chat that suddenly looks empty isn’t lost; its past messages live in the web conversation.
Upgrade notes
Section titled “Upgrade notes”The standard flow applies:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.8/PINCHY_VERSION=v0.6.0/' .envdocker compose pull && docker compose up -d && docker image prune -fMultiple chats per agent
Section titled “Multiple chats per agent”Each agent now keeps a list of separate conversations per user. A chat switcher in the chat header lets you start a new chat, jump between existing ones, and see the current one at a glance. Chat titles are derived from the first message you send, so the list stays scannable. New chats show a “Not saved yet” marker until the first message lands.
Telegram conversations are visible as read-only chats
Section titled “Telegram conversations are visible as read-only chats”When an agent is connected to Telegram, each linked peer’s conversation appears in the Chats list as a read-only transcript. You can read what was said over Telegram from the web UI; replying still happens in Telegram. This makes Telegram activity auditable from the same place as web chats.
Sturdier streaming and reconnects
Section titled “Sturdier streaming and reconnects”Backgrounding a chat tab mid-reply, reloading during a stream, or reconnecting while a run is still in flight no longer corrupts the message list. The chat view keeps a stable in-flight assistant slot across reconnects and discards stale pre-history buffers, so resume, timeout, and full-reload transitions land cleanly. Nothing to configure.
Usage analytics read retry
Section titled “Usage analytics read retry”Reading OpenClaw session files for usage analytics now retries transient EACCES errors instead of failing the request, so per-user/per-turn usage numbers stay reliable under concurrent writes.
Dependencies
Section titled “Dependencies”- openclaw-node 0.13.0 (was 0.12.1) and odoo-node 0.3.0 (was 0.2.0) — client-library bumps bundled into the images; no operator action.
- hono override raised to ≥ 4.12.25 — a transitive web-framework dependency, bumped to clear a published advisory. Build/runtime dependency only.
Database migrations
Section titled “Database migrations”None this release.
Upgrading from v0.5.7 to v0.5.8
Section titled “Upgrading from v0.5.7 to v0.5.8”Breaking changes
Section titled “Breaking changes”None.
Upgrade notes
Section titled “Upgrade notes”The standard flow applies:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.7/PINCHY_VERSION=v0.5.8/' .envdocker compose pull && docker compose up -d && docker image prune -fAutomatic migration off the default database password
Section titled “Automatic migration off the default database password”The default pinchy_dev database password is public in our repository, so running on it was never real protection. Starting with v0.5.8, installations that never set DB_PASSWORD are migrated automatically on their first boot after the upgrade: Pinchy generates a strong password, persists it in the pinchy-secrets Docker volume (the same place the encryption key already lives), and applies it to PostgreSQL — no action required, no downtime beyond the normal upgrade restart.
- If you set
DB_PASSWORDin.env: nothing changes. Your value always wins — and if you ever set it without updating PostgreSQL itself, Pinchy now applies it for you on the next boot instead of failing to connect. - If you never set
DB_PASSWORD: the migration runs once, invisibly. Settings → Security shows the database password as Auto-generated (Docker volume), andGET /api/healthreports"db_password": "generated". - Backups keep working: the documented
docker compose exec db pg_dump …flow authenticates over the container’s local socket and does not need the password. - Heads-up for direct TCP access: if you connect to the database from the host with the old default password (custom scripts, DB GUIs), switch them to the managed credential or pin your own
DB_PASSWORDin.env— Pinchy will apply it on the next restart.
See where your secrets come from
Section titled “See where your secrets come from”Settings → Security gains a Secrets card showing where each secret comes from — environment variable, persisted file in the Docker volume, or not created yet. The same information is available from the shell via GET /api/health (a new secrets object with provenance values only — never the secrets themselves). This makes the auto-generated file fallback visible from outside the container, so you can tell “secret loaded from the volume” apart from “no secret at all” before rotating anything.
License now fails closed on expiry, with seat grace and renewal prompts
Section titled “License now fails closed on expiry, with seat grace and renewal prompts”Enterprise licensing was reworked so an expired key can never silently widen access. The change is behavioural — nothing to configure — but worth knowing:
- Fail-closed expiry. When a license lapses, restricted agents stay restricted and group-based access keeps being enforced. Pinchy never falls back to “everything visible to everyone.” All data is untouched; entering a new key re-activates management instantly.
- 30-day grace for paid keys. A paid key keeps working for 30 days past its paid-until date (trial keys expire immediately at their expiry). After grace, existing restrictions hold and management operations (creating/editing groups, changing agent visibility, analytics export) lock until a new key is entered. Restriction-tightening always works without a license — an admin can still remove users from groups or deactivate them at any time.
- Seat grace. Invites keep working up to 20% over your seat count; beyond that, new invitations pause (existing users are never deactivated). The seat counter and an inline notice make the headroom visible.
- Renewal prompts. The license banner now shows trial days remaining (dismissible per session) and a renewal reminder starting 14 days before a paid key expires; gated feature cards link to renewal.
Chat survives tab switches and reconnects without crashing
Section titled “Chat survives tab switches and reconnects without crashing”Backgrounding a chat tab mid-reply and returning to it — or any reconnect while a run is still streaming — no longer trips the “Something went wrong” error screen. The chat view now keeps a stable in-flight assistant slot across the WebSocket reconnect, so disconnect, timeout, and resume transitions never leave the message list in the index-mismatch state that produced the crash. Nothing to configure; reload any chat tab left open across the upgrade once.
Smarter model and attachment handling
Section titled “Smarter model and attachment handling”- PDFs are never wrongly blocked. Pinchy used to gate PDF attachments on a model “documents” capability that didn’t reflect reality — PDFs are routed through OpenClaw’s
pdftool, not the model’s native input. The false block is gone; PDFs attach and work regardless of the model’s native document support. - Model changes are validated. Updating an agent’s model now rejects a model whose provider isn’t configured (no API key) with a clear
400, instead of silently leaving the agent unable to chat. Leaving the model unchanged (e.g. a name-only edit) still works even if its provider was since disconnected. - Ollama Cloud catalog reconciled with the live model list — newly tool-reliable models added, known-broken ones kept out. No action required; the list refreshes from the built-in catalog.
Sturdier DOCX ingestion
Section titled “Sturdier DOCX ingestion”DOCX uploads are now guarded against decompression (“zip bomb”) attacks on two layers — a pre-decompress size check and a post-decompress cap — and malformed/ZIP64 archives are rejected fail-closed. Ordinary documents are unaffected.
Dependencies
Section titled “Dependencies”- OpenClaw 2026.6.5 (was 2026.5.28) — picked up via
Dockerfile.openclaw, surfaced inGET /api/version. Same protocol train; backward-compatible patch bump. - esbuild ≥ 0.28.1 — a transitive build-time dependency, bumped to clear GHSA-gv7w-rqvm-qjhr (CVSS 8.1). Build-tooling only; nothing ships it to production or to operators.
Database migrations
Section titled “Database migrations”0038 drops the unused documents/audio/video columns from the models capability table (they had no consumer — see the PDF-routing note above). Additive cleanup, runs automatically on startup, no manual steps and no data you’d miss.
Upgrading from v0.5.6 to v0.5.7
Section titled “Upgrading from v0.5.6 to v0.5.7”Breaking changes
Section titled “Breaking changes”Reload any chat tab left open across the upgrade. This release moves image and file attachments from inline base64 frames to a staged multipart-upload pipeline (see Resumable, staged file uploads below). A chat tab that was open before the upgrade is still running the previous client; the first time it tries to send an image it receives a PROTOCOL_OUTDATED error toast instead of delivering the message. Reloading the tab loads the new client and clears the error. Text-only messages from a stale tab are unaffected, and no server-side, config, or data action is required — this is purely a client-refresh transition.
Upgrade notes
Section titled “Upgrade notes”v0.5.7 is a large release. The headline changes are a new staged file-upload pipeline, capability-aware attachment handling with inline recovery, resumable streaming across reconnects, and a more reliable first chat on freshly-created agents. Everything below is picked up by the standard docker compose pull && docker compose up -d flow; three additive database migrations (0034–0036) run automatically on startup and require no manual steps.
Resumable, staged file uploads
Section titled “Resumable, staged file uploads”Attachments no longer travel inline as base64 inside the chat WebSocket frame. Instead the browser uploads each file to a new endpoint — POST /api/agents/<agentId>/uploads — which stages it server-side and returns an upload id; the chat message then references files by id. This makes large attachments reliable, shows per-file progress and retry in the composer, and keeps the chat socket lean.
- Limits. Up to 10 attachments per message and 15 MB per file (the endpoint returns
413above that). Staged files live for 24 hours before they become eligible for cleanup. - Wider file support. The picker now accepts CSV, plain text, Markdown, JSON, and YAML in addition to images and PDFs.
- Automatic cleanup. A garbage-collection sweep runs at startup and hourly, deleting staged files whose 24-hour TTL has elapsed and that were never attached to a sent message. Each sweep is correlated by a
sweepIdand emits onefile.upload.expiredaudit row per reclaimed file. - New audit events.
file.upload.staged(a file was accepted, or rejected withoutcome: "failure"),file.upload.attached(a staged file was promoted into a sent message), andfile.upload.expired(a staged orphan was swept). These are additive — existing audit queries are unaffected.
As noted under Breaking changes, the server now rejects the old inline-image_url frame with PROTOCOL_OUTDATED, so each browser tab must be reloaded once after the upgrade before it can send images again.
Capability-aware attachments and inline recovery
Section titled “Capability-aware attachments and inline recovery”Pinchy now knows which capabilities (vision, documents, audio, video, long-context, tools) each model supports and uses that to stop a doomed attachment before it is sent, rather than failing deep inside the agent.
- Pre-send block + RecoveryPanel. Attaching an image or PDF to an agent whose current model can’t handle it hard-blocks the send and shows an inline
RecoveryPanelwith a plain-English explanation and a one-click link to switch the agent’s model. Nothing is sent until the mismatch is resolved. - Capability hints in the model picker. The model picker shows per-capability icons and tooltips, and an amber warning on any model that fails a capability required by the current agent or template.
- 422 on agent creation.
POST /api/agentsnow returns422 template_capability_unavailable(with the missing capabilities and a docs link) and writes a failureagent.createdaudit row when no installed model satisfies a template’s required capabilities — instead of silently creating an agent that can’t do its job. - Onboarding warning. The setup wizard warns when no available model satisfies the default agent’s required capabilities.
modelstable — zero configuration. A newmodelstable records each model’s capabilities. It is seeded from Pinchy’s built-in catalog on every boot; for local Ollama, capabilities are detected from the Ollama API when you save the URL. No manual entry is required.
Earlier docs described this capability handling under the v0.5.4 notes; it actually ships in v0.5.7, and the v0.5.4 section has been corrected accordingly.
Streaming resume across reconnect
Section titled “Streaming resume across reconnect”When your browser drops mid-stream and reconnects (closed tab, network blip, Wi-Fi handoff), Pinchy now joins the new connection to the in-flight run and keeps streaming chunks into the same assistant bubble — no more “The agent didn’t respond” flash bubble for runs that were actually still running server-side. Under the hood:
- A new in-memory
ActiveRunsregistry on Pinchy tracks every in-flight chat run bysessionKey, with each entry holding the OpenClaw-correlatedrunId, the per-turnmessageId, and the set of currently-connected listener WebSockets. Multi-tab sessions on the same chat now naturally see the same stream — both tabs end up in the listener set. - The in-flight reply text is buffered server-side and replayed on reconnect. Streaming chunks are deltas the server never re-sends, so a tab reloaded mid-stream used to lose the words that had already streamed. The registry now accumulates the emitted text and seeds the resumed bubble with it — the reply arrives complete, not just from the reconnect point onward.
- A server-side run watchdog scans
ActiveRunsevery 30 seconds and tears down runs whose absolute age exceeds the per-deployment cap (default 15 minutes). This is the server-side belt to the existing client-side stuck-timer suspenders — it catches runs that hang while the tab is backgrounded or after the laptop sleeps. Stuck runs are aborted via OpenClaw, audited aschat.run_timed_out, and a terminal error frame is broadcast to any still-connected listener. - The same watchdog also catches the opposite failure: a run the backend accepts at dispatch but that never produces a first chunk within the first-chunk timeout (default 180 seconds) — a wedged or rate-limited provider/lane — is torn down, audited as
chat.run_no_first_chunk, and surfaced to the user as a retryable error so they can resend instead of staring at a blank thread. This is the reload-surviving server-side backstop to the client’s 60-second stuck timer. - The audit trail gains four new event types:
chat.run_timed_out,chat.run_no_first_chunk,chat.run_completed_after_disconnect, andchat.run_aborted(the last is declared in the audit union for a future user-triggered abort UI; emission lands when that UI ships). Existing audit queries are unaffected — the new events are additive.
The ActiveRuns registry is in-memory only — a Pinchy restart drops every entry, which is acceptable because the OpenClaw side is restarted (or unreachable) in that case. No database migration is required for it.
Operationally:
- New audit-trail queries you might want bookmarked:
chat.run_timed_out— how many runs hit the 15-min hard cap last week?chat.run_no_first_chunk— how often does the backend accept a run but never start streaming? A spike here points at a wedged or rate-limited provider/lane (this is the signal that was missing during exactly that class of incident).chat.run_completed_after_disconnect— how often do users abandon a long-running chat? Correlates with background-tab behavior.
- The 15-minute absolute cap and the 180-second first-chunk timeout are both per-deployment and live in
packages/web/src/server/run-watchdog.ts(DEFAULT_MAX_RUN_DURATION_MSandDEFAULT_FIRST_CHUNK_TIMEOUT_MS). There is intentionally no per-agent override; surface one as a deployment env var if you ever see a legitimate need (YAGNI today).
More reliable first chat on freshly-created agents
Section titled “More reliable first chat on freshly-created agents”The first message to a just-created agent could previously fail with unknown agent id when the chat dispatch raced ahead of OpenClaw applying the new agent config. Pinchy now gates the first dispatch on OpenClaw’s agents.list runtime-readiness signal, retries config.apply when the gateway rate-limits it instead of silently dropping the change, and applies new agents via hot-reload rather than an atomic file write the gateway’s watcher could miss. No action required — it’s a reliability fix.
Channel-health watchdog for Telegram
Section titled “Channel-health watchdog for Telegram”OpenClaw owns the Telegram poller, so a channel worker that crash-loops below the gateway WebSocket used to be invisible — the connection stayed “connected” while the bot silently dropped messages. A new watchdog probes the channel status every 30 seconds and makes those failures operator-visible:
- A red Degraded badge appears on the agent’s Telegram settings while the poller is failing, with the underlying error on hover.
- The audit trail gains three event types:
channel.degraded(first failure),channel.polling_failed(still down after several consecutive probes), andchannel.recovered— together they bound the outage window. Error detail is PII-scrubbed.
The classic trigger is one bot token polled by two deployments (staging and production, say): Telegram allows a single getUpdates consumer per bot, so the instances terminate each other in a loop. If you see a persistent degraded badge with a “terminated by other getUpdates request” error, give each environment its own bot. Nothing to configure — the watchdog is on after the upgrade.
Diagnostics export from the Support tab
Section titled “Diagnostics export from the Support tab”Admins can now generate a downloadable bug-report bundle from Settings → Support: pick an agent, and Pinchy packages the version triplet (Pinchy, OpenClaw, openclaw-node), the scoped session trace as OTel-style spans with per-turn timing and token usage, and the related audit entries. Secrets are redacted with the audit-trail sanitizer and session keys are hashed before anything is written; the bundle does include conversation text, since that is usually what a bug report needs. Each export is audited as diagnostics.exported.
Setup-wizard secrets fix
Section titled “Setup-wizard secrets fix”v0.5.7 also fixes the v0.5.6 setup-wizard regression where Smithers replied with No API key found for provider '<name>' on the very first chat message after a fresh install. The bug was provider-agnostic: OpenClaw’s secrets-provider initialised at gateway boot with a “file missing” state because secrets.json was only written after the user completed the wizard. The provider never reinitialised when Pinchy hot-reloaded openclaw.json (the secrets-section diff was empty), so the gateway ran the rest of the session with no provider keys until a manual container restart.
The fix is Pinchy-side: an inotifywait handler in start-openclaw.sh writes a /openclaw-secrets/.bootstrap-applied marker on the first appearance of secrets.json and SIGTERMs the gateway exactly once so the next boot picks up the file. The health-check loop respawns the gateway within ~10–40 s, and a build-time drift guard in validateBuiltConfig rejects emitted configs whose SecretRef pointers don’t resolve in secrets.json — closing the related class of “config references a key that isn’t there” bugs that would have produced the same symptom from the Pinchy side.
If you saw the “No API key found” error on v0.5.6 and restarted the OpenClaw container manually to recover, no follow-up action is needed — the secrets-provider re-reads cleanly from disk on every boot.
Upgrade command
Section titled “Upgrade command”No manual steps beyond the standard upgrade flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.6/PINCHY_VERSION=v0.5.7/' .envdocker compose pull && docker compose up -d && docker image prune -fBETTER_AUTH_URL removed — no action needed
Section titled “BETTER_AUTH_URL removed — no action needed”Pinchy no longer reads BETTER_AUTH_URL. An investigation (#352) confirmed the variable had no functional consumer:
- Pinchy doesn’t use Better Auth’s email-verification or password-reset email flows. Password resets run through Pinchy’s own invite-token system, and the reset link is built from the browser’s current origin — not from a configured base URL.
- Origin / CSRF checks read the Domain Lock value (and the request host), not
BETTER_AUTH_URL. - We don’t use OAuth, the one remaining Better Auth feature that needs an absolute callback URL.
The variable is gone from docker-compose.yml, .env.example, and the startup warning that previously told Domain-Locked deployments to set it (added in v0.5.4 — see below). If you set BETTER_AUTH_URL in your .env or a docker-compose.override.yml, you can drop it. Leaving it in place is harmless — it is simply ignored — but the line is now dead config. Domain Lock remains the single source of truth for your public origin; HTTPS, secure cookies, and origin enforcement are unchanged.
Ollama Cloud model catalog refreshed against the live API
Section titled “Ollama Cloud model catalog refreshed against the live API”The Ollama Cloud library pages over-promise: some models advertise capabilities the live API doesn’t actually honor. We re-probed every cloud model against the real /v1/chat/completions endpoint — sending image payloads with non-guessable content for vision and a function schema for tools — and corrected the catalog to match what the API does, not what the library page claims.
- MiniMax M3 added.
minimax-m3joins the picker as a vision + reasoning + tools model (512K context). Vision and tool calling were both confirmed against the live API. It is now the reasoning-tier vision default. qwen3.5:397bis now text-only. Its library page lists image input, but the live endpoint accepts image payloads and then hallucinates their contents rather than rejecting them — it does not actually see images. It stays available as a text/reasoning model and is no longer offered as a vision choice. Image work that previously could route here now uses the canonical vision line (qwen3-vl>gemini-3-flash-preview>gemma4).qwen3-next:80bremoved. On Ollama Cloud’s OpenAI-completions endpoint it never emits a structured tool call — it returns empty content or a malformed tool-call blob, even when tools are required. Every Pinchy agent uses tools, so a tool-broken model has no place in the picker. The Ollama Cloud balanced default moves toglm-4.7.
No action is required for agents created the normal way: their model comes from the capability resolver (which never selected qwen3-next:80b), and the global default is recomputed on the upgrade’s config regeneration. The only agents affected are ones where someone manually pinned ollama-cloud/qwen3-next:80b — those couldn’t call tools before this release either, so switch them to ollama-cloud/glm-4.7 (or another model) in the agent’s settings.
Install Pinchy as an app
Section titled “Install Pinchy as an app”Pinchy now ships a web-app manifest and platform splash screens, so it can be installed as a standalone app. In Chrome on the desktop an install icon appears in the address bar; on iOS Safari, Share → Add to Home Screen produces a launcher that opens Pinchy full-screen with a branded splash. See the new Install as an app guide. Nothing to configure — it is available after the upgrade.
Integration audit event names
Section titled “Integration audit event names”Integration lifecycle events have moved out of the generic config.changed bucket and into their own resource namespace, matching the convention already used for agent.*, group.*, and user.*.
| Before | After |
|---|---|
config.changed (detail.action: integration_created) |
integration.created |
config.changed (detail.action: integration_updated) |
integration.updated |
config.changed (detail.action: integration_deleted) |
integration.deleted |
config.changed (detail.action: integration_schema_synced) |
integration.synced |
integration.recovered |
integration.auth_recovered |
integration.auth_failed and integration.credentials_updated are unchanged. Credential changes no longer emit a paired config.changed row alongside integration.credentials_updated — one mutation now produces one audit row. See Audit trail → Integration management for the full list and detail-field reference.
Existing audit rows from v0.5.6 and earlier keep their original event names — the log is HMAC-signed and immutable. Any alerting or compliance pipelines that filter on eventType need to be updated to match both old and new names during the transition window. A single filter that covers both is eventType IN ('integration.created', 'integration.updated', 'integration.deleted', 'config.changed') AND resource LIKE 'integration:%'.
Operator notes
Section titled “Operator notes”- Usage dashboard now records prompt-cache tokens. Previously the poller read the wrong field names from OpenClaw and stored every cache counter as 0 — with providers that cache aggressively (Anthropic), the dashboard could show single-digit input for heavy days. After the upgrade, new usage records carry cache reads/writes, the daily chart gains a dashed Cached Input series, and cost estimates include cache pricing. Historic rows stay as recorded; expect day totals to jump. Totals remain approximate until per-turn accounting lands (#483).
- Configurable usage poll interval. The usage-counter poller interval is now configurable via
PINCHY_USAGE_POLL_INTERVAL_MS(default60000, minimum1000). Most deployments need not set it. - Database migrations.
0034addslast_error/last_error_attointegration_connections(surfaces integration auth-failure detail),0035creates theuploaded_filesstaging table, and0036creates themodelscapability table. All three are additive and run automatically on startup.
Dependencies
Section titled “Dependencies”- openclaw-node 0.12.1 (was 0.10.0) — Pinchy bundles this internally; nothing for operators to install. It adds
agents.list(), which powers the dispatch-readiness gate above, and carries the Gateway-correlatedrunIdon everyChatChunk. - OpenClaw 2026.5.28 (was 2026.5.20) — picked up via
Dockerfile.openclawand surfaced inGET /api/version. - hono ≥ 4.12.21 — pinned to clear four disclosed CVEs in this transitive dependency.
Upgrading from v0.5.5 to v0.5.6
Section titled “Upgrading from v0.5.5 to v0.5.6”Breaking changes
Section titled “Breaking changes”None.
Upgrade notes
Section titled “Upgrade notes”v0.5.6 is a cosmetic patch on top of v0.5.5. The v0.5.5 release-cut was performed via gh release create instead of pnpm release, which skipped the version bump in package.json and packages/web/package.json. As a result, v0.5.5 images report "pinchyVersion": "0.5.4" from /api/version even though the image tag, OCI image.version label, and OpenClaw runtime are all on the intended v0.5.5 wire. v0.5.6 restores agreement between the tag and the reported version. There are no functional changes versus v0.5.5.
If you already deployed v0.5.5, upgrade straight to v0.5.6:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.5/PINCHY_VERSION=v0.5.6/' .envdocker compose pull && docker compose up -d && docker image prune -fIf you are upgrading directly from v0.5.4, skip v0.5.5 and follow the v0.5.4 → v0.5.5 upgrade notes below (substituting v0.5.6 for v0.5.5 in the sed command). All v0.5.5 behaviour ships in v0.5.6 unchanged.
Upgrading from v0.5.4 to v0.5.5
Section titled “Upgrading from v0.5.4 to v0.5.5”Breaking changes
Section titled “Breaking changes”None for stock templates. If you maintain a custom AGENTS.md that tells the agent to save files into uploads/, see Agent writable area moved to workbench/ below for the recommended (non-mandatory) migration.
Upgrade notes
Section titled “Upgrade notes”v0.5.5 picks up OpenClaw 2026.5.20 with the v4 client protocol (was 2026.5.7 / v3), gives every agent a dedicated workbench/ subdirectory in its workspace for files it produces, separate from the user’s uploads/, and hardens the Odoo plugin against silent cross-company writes for multi-company databases. It also fixes a confusing failure mode for the built-in image tool on Ollama Cloud stacks, adds an explicit image-model default, patches a reliability edge where chat history could disappear overnight due to OpenClaw’s default daily session-reset behavior, and tightens the password-reset path so leaked recovery links cannot leave a logged-in session behind.
Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.4/PINCHY_VERSION=v0.5.5/' .envdocker compose pull && docker compose up -d && docker image prune -fNo database migration, no docker-compose.yml change, and no env-var changes are required.
Agent writable area moved to workbench/
Section titled “Agent writable area moved to workbench/”Each agent workspace now has three zones (see Agent Workspaces for the full model):
- Workspace root — system files like
SOUL.md,AGENTS.md,IDENTITY.md. Read-only for the agent. uploads/— files the user attached in chat. Created on workspace spawn; previously created lazily by the first upload.workbench/(new) — the agent’s own writable area. Created on workspace spawn.pinchy_writeaccepts paths under here without prior user upload.
On v0.5.4 and earlier, a fresh agent could not call pinchy_write until the user had attached at least one file via the chat upload button — pinchy_write to <workspace>/uploads/foo.txt failed with ENOENT because the uploads/ directory didn’t exist yet, and writing anywhere else (e.g. the workspace root) was rejected. v0.5.5 provisions both uploads/ and workbench/ on workspace creation, and adds workbench/ to the pinchy_write allow-list as the canonical agent write target.
Existing custom AGENTS.md files keep working. uploads/ remains writable for backward compatibility, so any custom instruction telling the agent to save into uploads/ continues to function. If you maintain such an AGENTS.md, consider updating it to use workbench/ instead — the separation makes “user-uploaded” vs. “agent-produced” easier to reason about. There is no automatic migration; this is a documentation-level switch.
Stock templates do not currently instruct agents to write to either location, so most deployments need no action.
Improved pinchy_write rejection messages
Section titled “Improved pinchy_write rejection messages”When pinchy_write (or pinchy_read) refuses a path, the error message now includes the configured allow-list so the LLM can retry against the right location:
Access denied: path not in write_paths (allowed: /root/.openclaw/workspaces/<id>/uploads, /root/.openclaw/workspaces/<id>/workbench)This eliminates a class of stalls where the model would repeatedly try the same wrong path. The error string format is unchanged at the prefix (Access denied: path not in write_paths) so any external monitoring that matched on it continues to work.
Image tool no longer routes to devstral-small-2:24b
Section titled “Image tool no longer routes to devstral-small-2:24b”On Ollama Cloud stacks without an explicit image model, Pinchy’s built-in image tool could pick devstral-small-2:24b and fail with HTTP 400 "Image input is not enabled for this model" mid-chat — confusing because the user never selected devstral. Two fixes ship together:
- Data correction.
devstral-small-2:24bis now flaggedvision: false. Its ollama.com library page lists “Text, Image” as input types, but an empirical smoke test against the live/v1/chat/completionsendpoint (seescripts/verify-ollama-cloud-vision.mjs) confirms the runtime API rejects images with HTTP 400. Devstral is Mistral’s coding series, not a vision model. - Explicit image-model default. Pinchy now emits
agents.defaults.imageModel.primaryinto the OpenClaw config, parallel to the existingpdfModelselection. Provider preference order: anthropic > google > openai > ollama-cloud. For ollama-cloud the canonical-vision line wins (qwen3-vl:235b-instruct>qwen3-vl:235b>gemini-3-flash-preview>gemma4:31b), avoiding models likemistral-large-3:675borqwen3.5:397bthat accept image input but mislabel colors.
No action required. The new field is regenerated on startup from your existing provider settings. Operators who want to override the auto-pick can hand-edit agents.defaults.imageModel.primary in openclaw.json.
A companion verification script lives at scripts/verify-ollama-cloud-vision.mjs and can be re-run whenever the Ollama Cloud catalog changes: it tests each curated model against the live API and reports any drift between the vision flag in ollama-cloud-models.ts and runtime acceptance.
CRM & Sales Assistant template gains quotation-ready Odoo models
Section titled “CRM & Sales Assistant template gains quotation-ready Odoo models”The CRM & Sales Assistant template now declares three additional Odoo models so a Sales agent can build quotations end-to-end (lead → opportunity → quote with the right VAT regime) and answer “is this invoice paid?”:
account.fiscal.position(read + write) — set the customer’s tax regime (e.g. “EU B2B reverse-charge”) onres.partner.property_account_position_idso future quotations auto-apply the correct taxes.sale.order.line(read + create + write) — inspect and revise quotation line items directly. Normal happy-path writes still go throughsale.order.order_line.account.move(read-only) — look up invoice payment status. Drafting, posting, or amending invoices remains exclusive to the Bookkeeper template, which is governed by a regulated draft-first / four-eyes flow.
A new Fiscal Positions row also appears in the Permissions UI for every Odoo connection (regardless of which template the agent uses), because the schema sync now probes account.fiscal.position as part of the standard accounting category.
Action required for existing CRM agents. Template changes only affect newly-created agents. To grant an existing CRM & Sales Assistant agent access to the new models:
- Open the agent’s settings → Permissions.
- Tick
account.fiscal.position(Read + Write),sale.order.line(Read + Create + Write), andaccount.move(Read). - Save.
If you skip this step, the existing agent keeps its previous (narrower) permission set — there is no automatic migration. Newly-created agents from this template pick up the new models automatically.
Chat history persists across daily restarts
Section titled “Chat history persists across daily restarts”OpenClaw ships with a default session.reset: { mode: "daily", atHour: 4 } that rotates the session pointer at 04:00 gateway-local time. Each morning the pointer moved to a new, empty transcript — old history stayed on disk but became unreachable from the Pinchy UI. Pinchy now unconditionally overrides this setting to an idle-based reset with a one-year idle window (mode: "idle", idleMinutes: 525600), which never fires under normal use. Conversations persist until the user explicitly resets with /new or a new chat is started manually.
No action required. The override is written on every Pinchy startup via regenerateOpenClawConfig(). If your instance was affected, existing message files are still on disk under ~/.openclaw/agents/<agentId>/sessions/. Reach out to your administrator if you need to restore a specific session.
OpenClaw 2026.5.20 (protocol v4)
Section titled “OpenClaw 2026.5.20 (protocol v4)”v0.5.5 bumps the bundled OpenClaw runtime from 2026.5.7 to 2026.5.20 and openclaw-node from 0.9.0 to 0.10.0. OpenClaw 2026.5.12 raised MIN_CLIENT_PROTOCOL_VERSION from 3 to 4 — earlier Pinchy releases paired with a self-hosted OpenClaw on a newer tag would fall into an infinite “Waiting for OpenClaw Gateway…” loop with protocol mismatch … expected=4 in the gateway log (#411). The v0.5.5 client advertises protocol v4 and clears the handshake.
OpenClaw 2026.5.12 also stopped self-bootstrapping a random gateway.auth.token on first start and now refuses to bind on a non-loopback interface without one. Pinchy now seeds gateway.auth.{mode,token} before OpenClaw starts so fresh installs (no setup wizard run yet) come up cleanly.
No action required for the standard Docker Compose stack — docker compose pull && up -d swaps both images together. If you run a custom OpenClaw on the side and pair it with openclaw-node directly, bump to 0.10.0 to advertise protocol v4.
Cross-company write protection in Odoo agents
Section titled “Cross-company write protection in Odoo agents”For multi-company Odoo databases, the pinchy-odoo plugin now refuses to write a record whose embedded _pinchy_ref company tag disagrees with the company implied by the relation chain (top-level field only). This stops a class of silent cross-company mistakes — for example, an agent applying a fiscal position from Company A to a partner that lives under Company B, where the write would previously be accepted by Odoo but produce wrong downstream taxes.
Companion changes ship together:
- Auto-include
company_id.odoo_readnow transparently augments the requested field list withcompany_idfor company-scoped models (res.partner,account.fiscal.position, etc.) so the agent always has the company context it needs for the next decision, without bloating the agent’s prompt with extra field lists. _pinchy_refcarries the company name. Encoded references now include an optionalcompanyId/companyLabel, and labels are suffixed with the company name ("ACME Bookkeeping [Company A]") when ambiguity exists. The base ordering invariant for_pinchy_refis unchanged.- Better many2one collision errors. When an
odoo_createorodoo_writelookup matches more than one record across companies, the error message now explains the multi-company collision instead of returning a generic “multiple matches” string, so the agent can retry with acompany_idconstraint. - Penny and Bookkeeper templates updated. Both stock templates now instruct the agent to disambiguate multi-company records up front instead of guessing.
Action for existing read-write Odoo agents (Penny / Bookkeeper): newly-created agents get the updated instructions automatically. Existing agents keep their current AGENTS.md unless you re-create them; the runtime guard (cross-company write rejection) applies to all Odoo agents regardless of AGENTS.md content.
Password reset now revokes sessions and writes an audit entry
Section titled “Password reset now revokes sessions and writes an audit entry”POST /api/invite/claim on the reset branch is now wrapped in a database transaction with three guarantees (PR #431):
- Existing sessions for the target user are revoked. A leaked or stale session token cannot survive a password reset, so recovery semantics are now sound.
- The four writes (account password, optional user name, invite-token claim, session revocation) are atomic. If any step fails, everything rolls back and the reset link stays usable for a retry.
- An
auth.password_reset_completedaudit entry is written. Password changes are security-sensitive regardless of who triggers them, and CISOs expect to see them in the audit trail.
See the new row in Audit trail → Authentication for the detail-shape.
No action required. Behavior change only on the reset path; ordinary login sessions are untouched.
Universal chat.agent_error audit event
Section titled “Universal chat.agent_error audit event”Before v0.5.5, only three error classes wrote audit entries (agent.model_unavailable, agent.upstream_format_error, chat.silent_stream) and each was throttled. The long tail — incomplete-terminal-response failovers, unclassified provider errors, transient blips — had no audit signal at all, which made “how often does this happen?” unanswerable without screenshotting.
A new chat.agent_error event now fires unconditionally for every error chunk plus the synthesised silent-stream timeout. It captures agent, model, an errorClass discriminator (one of failover_incomplete_stream / schema_rejection / model_unavailable / transient / provider_config / silent_stream_timeout / unknown), and an email-scrubbed providerError truncated to 1024 bytes. The specialised events stay in their role as throttled per-class signals; the umbrella runs alongside them, not instead.
A single SQL query grouped by detail->>'errorClass' now aggregates every failure shape for a fleet-wide failure-rate dashboard. See Audit trail → Chat runtime for the full row.
Known issues
Section titled “Known issues”uuid< 11.1.1 (GHSA-w5hq-g745-h8pq, moderate). Reachable only viagoogleapis → google-auth-library → gaxios → uuidfrom thepinchy-emailplugin’s Gmail integration. The advisory is missing-buffer-bounds checks inv3/v5/v6UUID generation when callers supply their own buffer; Pinchy and its downstream deps only call the no-argumentv4form, so the gadget is unreachable in our code paths. The dep cannot be upgraded without bumpinggoogleapispast a major it has not yet released. Tracked;pnpm audit --audit-level=high --prod(the level our release gate runs at) stays clean.
Upgrading from v0.5.3 to v0.5.4
Section titled “Upgrading from v0.5.3 to v0.5.4”Breaking changes
Section titled “Breaking changes”odoo_schematool replaced — see Bookkeeper / Odoo schema discovery below. Existing agents are auto-migrated on startup; no manual action is required.
Upgrade notes
Section titled “Upgrade notes”v0.5.4 extends the Odoo template library with read-write operator agents, hardens how those agents reference Odoo records, and irons out several chat-reliability edges. It also picks up Next.js security patches and OpenClaw 2026.5.7.
Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.3/PINCHY_VERSION=v0.5.4/' .envdocker compose pull && docker compose up -d && docker image prune -fNo database migration, no docker-compose.yml change, and no env-var changes are required.
Bookkeeper / Odoo schema discovery (auto-migrated)
Section titled “Bookkeeper / Odoo schema discovery (auto-migrated)”The odoo_schema tool has been replaced by two narrower tools: odoo_list_models and odoo_describe_model. The new odoo_describe_model returns a compact field map (default ~40 most-common fields per model) and accepts fields: ["…"], limit, and verbose: true arguments. This cuts typical schema-discovery context cost from ~18 kB per model to ~1 kB, which unblocks vision-capable models like ollama-cloud/gemini-3-flash-preview for invoice-processing flows.
No action required. A startup migration rewrites every agent’s allowed_tools to use the new names, and the read-write Odoo operator templates (Bookkeeper, Warehouse Operator, HR Operator, etc.) ship with updated guidance for the agent.
For existing agents created before v0.5.4, the old odoo_schema tool name is kept as a deprecated alias. The AGENTS.md files those agents store in their workspace still contain literal odoo_schema references — the alias keeps them working without any manual file editing, and routes the call through the new compact code path. You can safely ignore the alias; it will be removed in v0.6.x.
Six new Odoo agent templates
Section titled “Six new Odoo agent templates”The agent picker now includes a Bookkeeper template and five read-write Odoo operator counterparts to the existing read-only Analysts:
| Analyst (read-only) | Operator (read + create + write) |
|---|---|
| Project Tracker | Project Manager |
| HR Analyst | HR Operator |
| Inventory Scout | Warehouse Operator |
| Manufacturing Planner | Production Operator |
| — | Approval Manager (cross-module) |
Each operator template follows a safety pattern: mandatory user confirmation before any side-effecting write, duplicate-check on every create, no delete on any model (cancellations are write transitions, never hard deletes), and read-only access to records that belong to a different role. The new Bookkeeper template covers the “book this receipt” workflow with a draft-first, dedupe-first, one-shot-create flow.
The Approval Manager works on Odoo Community as well as Enterprise — the approval.request and approval.category models are flagged optional, so the Create button stays enabled on Community installs and the agent discovers availability at runtime via odoo_schema.
Vision capability is now standard for read-write Odoo templates
Section titled “Vision capability is now standard for read-write Odoo templates”Every read-write Odoo operator template now declares the vision capability in its model hint. Previously this had to be set manually after agent creation, which often landed users on unstable Vision+Tools models. A new drift invariant in the test suite enforces this for any future write-capable Odoo template.
Hardened Odoo relation references
Section titled “Hardened Odoo relation references”When an Odoo tool returns a record, related-record references are now emitted as opaque, encrypted tokens (pinchy_ref:v1:…) rather than raw (id, label) tuples. The pinchy-odoo plugin transparently resolves these tokens on subsequent calls, so an agent can no longer fabricate or substitute a numeric ID it never saw. Existing agents pick up the new behavior automatically; no configuration change is required.
Self-refs on odoo_create and odoo_read (_pinchy_ref)
Section titled “Self-refs on odoo_create and odoo_read (_pinchy_ref)”Every record the plugin returns now carries a _pinchy_ref field — an opaque, encrypted token that identifies the record itself (alongside the raw integer id). odoo_create returns {id, _pinchy_ref} instead of just {id}, and every record returned by odoo_read carries one.
This closes a release-blocker gap surfaced on staging in late v0.5.3 testing: the odoo_attach_file tool only accepts opaque references for targetRef, but odoo_create’s old {id}-only response left agents no path to a valid token for a record they had just created. They would fabricate strings like "account.move,37", which the plugin correctly rejected with "Invalid integration reference" — making odoo_create → odoo_attach_file chains (the entire Bookkeeper “book this bill and attach the PDF” flow) effectively unreachable.
The field is named _pinchy_ref rather than ref to avoid shadowing Odoo’s own ref field, which exists on account.move, account.payment, and others as a string holding payment-reference identifiers ("INV/2026/0001" etc.). The underscore prefix signals “Pinchy-added, not Odoo data” so the LLM’s view of actual Odoo records stays lossless.
Tools that already accept raw integer IDs (odoo_write, odoo_delete) are unchanged. Existing agents pick up the new behavior automatically; the operator-template AGENTS.md files have been updated to teach agents about the _pinchy_ref field, so old agents continue to work via the shared instruction shipped in their template prompt.
Odoo file attachment (new odoo_attach_file tool)
Section titled “Odoo file attachment (new odoo_attach_file tool)”Read-write Odoo operator templates can now attach uploaded files to Odoo records as ir.attachment. The Bookkeeper template uses this to link receipt images to the corresponding vendor bill; the Warehouse Operator can attach delivery notes to pickings; the HR Operator can attach medical certificates to leave requests; and so on for the Project Manager, Production Operator, and Approval Manager.
The new odoo_attach_file tool is automatically included in the read-write permission tier alongside odoo_create and odoo_write. When you create any read-write Odoo agent, the tool is pre-enabled — no manual permission change is required.
After upgrading: existing Odoo connections need a schema re-sync to pick up ir.attachment. Open Settings → Integrations → Odoo → ⋯ → Sync now. Until you sync, the Create buttons for operator templates that reference ir.attachment will remain disabled.
The tool rejects filenames containing path separators or leading dots, and caps attachments at 25 MB (matching Odoo’s default web.max_file_upload_size). These guardrails prevent a prompt-injection-influenced agent from referencing files outside the agent’s uploads directory.
Background chats
Section titled “Background chats”Open chats keep running in the background while you navigate within Pinchy — agents no longer reset when you switch to another part of the app. A pulse dot in the sidebar marks each agent with an active run; if the last turn errored, the dot turns red so you see at a glance which chats need attention. (#199)
Chat reliability fixes
Section titled “Chat reliability fixes”- Browser sleep recovery. Chats now reattach cleanly when a tab returns from background sleep instead of getting stuck on a stale stream.
- Dead-key composer freeze. Typing characters that involve dead keys (e.g.
^+e→ê) no longer desyncs the composer input. - Payload rejection visibility. When OpenClaw rejects a payload mid-stream, the chat now surfaces a clear error status instead of leaving the spinner running.
- Silent stream-end retry. A run that finishes without producing any assistant text — typically a cold-path tool call that timed out inside OpenClaw’s embedded layer — now shows the standard error bubble with a Retry button instead of an indistinguishable “successful empty reply”. Each occurrence writes a throttled
chat.silent_streamaudit entry so admins get an operational signal. - Gemini 3
thought_signatureerrors are now named and explained. When the upstream provider drops Gemini 3’s requiredthought_signaturefield on a tool-call replay turn (upstreamopenclaw/openclaw#72879), Pinchy now shows a dedicated transient upstream issue bubble that names the cause and tells the user that Retry usually clears it on the next try. The bubble deliberately offers no “Switch model” link — the model is fine. Each occurrence writes a throttledagent.upstream_format_erroraudit entry so admins can track frequency from the audit page rather than grepping gateway logs. The upstream fix for the native Google path lands in OpenClaw 2026.5.18; v0.5.4 is still pinned at 2026.5.7 and ships with the transient-issue bubble as the user-facing mitigation. The OpenClaw bump is scheduled for the next Pinchy release. (#338)
Permissions tab no longer reports false-positive dirty state
Section titled “Permissions tab no longer reports false-positive dirty state”If an Odoo or Email connection was configured on an agent, the Settings → Agent → Permissions tab kept showing “Unsaved changes” and a Save & Restart button after a successful save. The dirty-state check now re-syncs against the persisted state once the post-save refetch lands, so a clean save shows as clean.
New /api/version endpoint + OCI image labels
Section titled “New /api/version endpoint + OCI image labels”You can now confirm which Pinchy and OpenClaw versions are actually running without opening the UI. GET /api/version returns { pinchyVersion, openclawVersion, build, nodeEnv } and is exempt from Domain Lock so it works from monitoring tools and the host shell. Docker images now also carry standard OCI labels (org.opencontainers.image.version, org.opencontainers.image.revision, …), so docker inspect ghcr.io/heypinchy/pinchy:v0.5.4 reports the version and git SHA the image was built from.
The upgrading guide’s “Verify” step is updated to use /api/version instead of opening http://localhost:7777 directly — the old instruction returned 403 on Domain-Lock-enabled deployments.
Startup warning when Domain Lock is set but BETTER_AUTH_URL is unset
Section titled “Startup warning when Domain Lock is set but BETTER_AUTH_URL is unset”Better Auth’s own baseURL autodetection does not read Pinchy’s Domain Lock value (verified on a staging v0.5.4 install where Better Auth still logged Base URL could not be determined). On a Domain-Locked deployment, that gap silently sends password-reset and email-verification links pointing at the wrong host.
Pinchy now logs a clear ⚠ Domain Lock is configured (<your-domain>) but BETTER_AUTH_URL is unset… warning on every startup of such a deployment, with the exact env-var assignment to copy-paste into your .env. The existing BETTER_AUTH_URL is set line is retained for the positive case. If you are running with Domain Lock today, check your pinchy container logs after this upgrade and add BETTER_AUTH_URL=https://<your-domain> to /opt/pinchy/.env if the warning appears. (#352)
Runtime and dependency updates
Section titled “Runtime and dependency updates”- OpenClaw 2026.5.7 (was 2026.5.3) — picked up via
Dockerfile.openclawand the bundledopenclaw-node 0.9.0. - Next.js 16.2.6 (was 16.2.4) — addresses GHSA-wfc6-r584-vfw7 and GHSA-26hh-7cqf-hhc6.
ws8.20.1 (was 8.20.0) — addresses GHSA-58qx-3vcg-4xpx (uninitialized memory disclosure).
Upgrading from v0.5.2 to v0.5.3
Section titled “Upgrading from v0.5.2 to v0.5.3”Breaking changes
Section titled “Breaking changes”None.
Upgrade notes
Section titled “Upgrade notes”v0.5.3 is a maintenance release focused on chat reliability: the recommended Ollama Cloud reasoning model was swapped after the previous default soft-deprecated upstream, model errors now surface as actionable in-chat bubbles instead of raw HTTP 500s, and the chat layout was restructured so per-agent runtimes survive in-app navigation. File attachments also got a proper preview surface.
Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.2/PINCHY_VERSION=v0.5.3/' .envdocker compose pull && docker compose up -dNo database migration, no docker-compose.yml change, and no env-var changes are required.
Default Ollama Cloud reasoning model swapped
Section titled “Default Ollama Cloud reasoning model swapped”ollama-cloud/kimi-k2-thinking is removed from the curated model list. The model began returning silent HTTP 500s from Ollama Cloud and is no longer a safe default. Agents that resolve via tier=reasoning now fall through to deepseek-v4-pro, which is already configured and tested.
Existing agents that pinned kimi-k2-thinking explicitly keep loading from the database — but the next request will fail upstream. Open Settings → Agent → Model for each affected agent and pick a working model. The new in-chat error surface (below) makes those agents easy to spot.
Actionable model-error bubbles in chat
Section titled “Actionable model-error bubbles in chat”When an agent’s model call returns a 5xx from the upstream provider, the chat now shows a structured error bubble (<Agent> couldn't respond. + provider/model + a deep-link to the agent’s model picker) instead of the raw HTTP 500: "Internal Server Error (ref: …)" string. The original error stays available under a collapsible Technical details section so support requests can still cite the upstream ref ID. Every flip into this error state writes an agent.model_unavailable audit entry.
Per-agent chat runtimes survive in-app navigation
Section titled “Per-agent chat runtimes survive in-app navigation”Switching between agents in the sidebar no longer tears down and recreates the chat runtime: a new ChatSessionProvider mounts one runtime per agent at the (app) layout level, so streams in-flight on agent A keep running while you read agent B’s history. The sidebar shows a subtle pulse on agents with an active turn and a red dot on agents that ended in an error, so background activity is visible without opening every chat.
Existing behavior is preserved on full page reloads: history still rehydrates from OpenClaw, the bundled history cap is now 200 messages, and a transient disconnect bubble shows when the WebSocket drops mid-stream.
Attachment preview and composer chips
Section titled “Attachment preview and composer chips”Non-image attachments (PDFs and other files) now render as a filename chip in the composer and on sent messages, with the full filename available on hover. Clicking an attachment opens an in-app AttachmentPreview modal with PDF and image preview, instead of forcing a download. The uploads route is now authenticated for both POST and GET, and PDFs/images are routed through OpenClaw’s built-in tools rather than inlined.
Background-run audit telemetry
Section titled “Background-run audit telemetry”Chat runs that complete while the user is not actively viewing the agent now emit a chat.background_run_completed audit event with the agent identity, run duration, and turn outcome. This makes background activity auditable without leaking conversation content into the audit log.
Upgrading from v0.5.1 to v0.5.2
Section titled “Upgrading from v0.5.1 to v0.5.2”Breaking changes
Section titled “Breaking changes”None.
Upgrade notes
Section titled “Upgrade notes”v0.5.2 is a maintenance release: a security fix for admin access to personal agents, the long-standing Ollama local-provider setup bug, and several robustness improvements in Settings → Groups.
Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.1/PINCHY_VERSION=v0.5.2/' .envdocker compose pull && docker compose up -dNo database migration, no docker-compose.yml change, and no env-var changes are required.
Security: admin access scope to personal agents
Section titled “Security: admin access scope to personal agents”Before v0.5.2, an admin could read or modify another user’s personal agent by calling GET/PATCH/DELETE /api/agents/:agentId directly, even though the UI did not expose those agents. The admin fast-path in assertAgentAccess now correctly enforces the personal-agent boundary: personal agents are only accessible to their owner, regardless of role. To share an agent with the team, set its visibility to All users (or use a group), which is unaffected by this change.
No action is required on upgrade. If you relied on this behavior in scripts or integrations, switch them to use a shared agent instead.
Ollama local provider works on fresh installs
Section titled “Ollama local provider works on fresh installs”Setting up a local Ollama provider in the onboarding wizard or Settings → Providers now works without manual .env edits. Pinchy detects local Ollama base URLs (localhost, 127.0.0.1, host.docker.internal) and rewrites them to a Docker-routable hostname (ollama.local, mapped to the host gateway in docker-compose.yml) so the OpenClaw container can reach the model server on the host. The provider config also uses openai-completions with the /v1 suffix, which is what OpenClaw expects for self-hosted OpenAI-compatible endpoints. Existing deployments that already work are unaffected.
Settings → Groups: inline validation, clearer errors
Section titled “Settings → Groups: inline validation, clearer errors”Group create and edit dialogs now render field-level validation errors inline (matching Pinchy’s error-display policy) and surface API failures via toasts instead of leaving the dialog in an ambiguous state. Two-step partial failures — for example, the group is created but the initial member assignment fails — are reported explicitly so you know what to retry.
Upgrading from v0.5.0 to v0.5.1
Section titled “Upgrading from v0.5.0 to v0.5.1”Breaking changes
Section titled “Breaking changes”None.
Upgrade notes
Section titled “Upgrade notes”v0.5.1 is a hotfix release. It fixes a startup loop in OpenClaw caused by a missing baseUrl field in the generated openclaw.json for the Anthropic, OpenAI, and Google providers. Deployments of v0.5.0 that configured any of these providers without setting ANTHROPIC_BASE_URL, OPENAI_BASE_URL, or GOOGLE_BASE_URL env-vars hit a models.providers.<name>.baseUrl: expected string, received undefined error and OpenClaw never came up.
Upgrade with the standard flow:
cd /opt/pinchysed -i 's/PINCHY_VERSION=v0.5.0/PINCHY_VERSION=v0.5.1/' .envdocker compose pull && docker compose up -dNo database migration, no config-file change, and no env-var changes are required. Pinchy regenerates openclaw.json on first start with the correct default base URLs, and OpenClaw boots cleanly.
If you previously set ANTHROPIC_BASE_URL (or the OpenAI/Google equivalents) for a proxy deployment, those env-vars continue to override the defaults — no action needed.
Upgrading from v0.4.4 to v0.5.0
Section titled “Upgrading from v0.4.4 to v0.5.0”Breaking changes
Section titled “Breaking changes”None for the standard upgrade path — the new docker-compose.yml you download below already contains the openclaw-secrets tmpfs block needed by the new SecretRef architecture.
If you maintain a custom docker-compose.yml (e.g. for a non-standard deployment, a different orchestrator profile, or a downstream fork), you must add a tmpfs-backed named volume for /openclaw-secrets and mount it into both the pinchy and openclaw services before starting v0.5.0:
services: pinchy: volumes: - openclaw-secrets:/openclaw-secrets # …rest of the pinchy volumes
openclaw: volumes: - openclaw-secrets:/openclaw-secrets # …rest of the openclaw volumes
volumes: openclaw-secrets: driver: local driver_opts: type: tmpfs device: tmpfs o: "mode=0770,uid=999,gid=999"The volume must be mounted into both services: Pinchy writes and atomically replaces secrets.json (requires directory write permission — uid=999 grants this as the pinchy system user); OpenClaw reads it. Without this, Pinchy cannot write the secrets file and every agent request fails with an authentication error.
Upgrade notes
Section titled “Upgrade notes”v0.5.0 moves image version pinning from docker-compose.yml into .env. This is a one-time migration — after this, upgrading only means editing PINCHY_VERSION in .env and running docker compose pull && docker compose up -d.
-
Back up your database (as always):
Terminal window docker compose exec db pg_dump -U pinchy pinchy > backup-$(date +%Y%m%d).sql -
Fetch the new
docker-compose.yml:Terminal window cd /opt/pinchycurl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.5.0/docker-compose.yml -o docker-compose.yml -
Add
PINCHY_VERSIONto your.env:Terminal window echo "PINCHY_VERSION=v0.5.0" >> /opt/pinchy/.env -
Pull and restart:
Terminal window docker compose pull && docker compose up -d
If you skip step 3, docker compose up fails loudly with a clear message telling you exactly what to add — this is by design, so a forgotten pin can’t silently pull the wrong version.
Recommended: set BETTER_AUTH_URL on HTTPS deployments
Section titled “Recommended: set BETTER_AUTH_URL on HTTPS deployments”If Pinchy is available on a public HTTPS domain, add the canonical URL to /opt/pinchy/.env before restarting:
BETTER_AUTH_URL=https://pinchy.example.comThe new docker-compose.yml passes this through to the Pinchy container. Better Auth uses it to generate absolute links for password resets, OAuth callbacks, and Telegram pairing redirects. Use the same hostname you lock in Settings → Security, without a trailing slash.
Telegram: brief downtime on first start
Section titled “Telegram: brief downtime on first start”OpenClaw detects the new SecretRef config format and hot-reloads. Telegram channels may be unresponsive for roughly 30 seconds during this reload. They recover automatically — no restart or re-configuration needed.
Recommended: rotate your API keys
Section titled “Recommended: rotate your API keys”Before v0.5.0, decrypted API keys were written into openclaw.json on disk. Docker volumes persist across container restarts, which means previous versions of openclaw.json (with decrypted keys inside) may still exist in volume history or backup snapshots taken before v0.5.0. After upgrading, rotate the keys at each provider:
- Anthropic — Settings → API Keys → revoke old, generate new
- OpenAI — API Keys → revoke old, generate new
- Google (Gemini) — Google Cloud Console → API Credentials
- Ollama Cloud — ollama.com/settings → API Keys
- Telegram bot — message @BotFather →
/revoke→/newtoken(only if you suspect exposure; revoking invalidates the previous webhook setup)
Then in Pinchy, go to Settings → Providers and re-enter each new key. Pinchy validates each one against the provider’s API before saving. Optionally, delete old volume backups that predate v0.5.0 if you no longer need them.
This is a “nice to do” for most deployments, but if your server was ever compromised or you share volume backups with third parties, treat it as required.
Optional: scan audit logs for historical plaintext
Section titled “Optional: scan audit logs for historical plaintext”If your compliance requirements demand evidence that no API keys were logged in plain text in your audit trail, run the bundled scan script:
docker compose exec pinchy npx tsx packages/web/scripts/scan-audit-logs-for-plaintext.tsIt checks audit log entries for patterns that look like API keys (Anthropic sk-ant-…, OpenAI sk-…, Google AIza…, Ollama Cloud, Telegram bot tokens). A clean result means your audit trail doesn’t contain any key material.
Future upgrades
Section titled “Future upgrades”From v0.5.0 onwards, upgrading is just:
# Edit /opt/pinchy/.env → change PINCHY_VERSION to the new tagdocker compose pull && docker compose up -dThe docker-compose.yml only changes when we add new services or volumes, which is rare. Release notes will tell you when a fetch is needed.
What’s new in v0.5.0
Section titled “What’s new in v0.5.0”-
SecretRef architecture (RAM-only secrets) — API keys no longer touch disk. The
openclaw.jsonconfig file holds opaqueSecretRefpointers; the actual key material lives in a tmpfs volume (/openclaw-secrets/secrets.json) that exists only in RAM and is never persisted. Compliance-friendly default for regulated industries. See Secrets & API Key Storage. -
Web Search integration — connect Pinchy to the Brave Search API and grant agents per-tool access to search and page fetch. Per-agent filters for domain allow/deny, freshness, language, and region let you scope what each agent can reach. See Set Up Web Search.
-
Gmail integration — connect Google accounts via OAuth and give agents scoped email access: read, create drafts, or send. A guided wizard walks admins through the Google Cloud Console setup. See Connect Email.
-
Per-template model recommendations — agent templates now declare preferred model tiers (fast, balanced, reasoning) and required capabilities (vision, long-context, tools). When creating an agent from a template, Pinchy picks the best match from your installed models automatically.
-
Message delivery status — the chat interface now tracks whether each message reached the agent. A message dims briefly while the network round-trip completes; once the agent acknowledges it, the bubble returns to normal. If delivery fails, a “Couldn’t deliver” notice appears.
-
Retry button — when a message fails to deliver, the agent doesn’t respond, or a response stream drops mid-way, a Retry button appears directly below the failed message. Pinchy handles the right recovery action automatically — resend, re-trigger, or continue the partial response — depending on what went wrong. See Message Delivery Status & Retry.
-
Chat connection states with auto-recovery — the chat indicator now shows four distinct states (Starting, Ready, Responding, Unavailable) with a 2-second hysteresis that absorbs brief network hiccups. When the agent runtime becomes reachable again after a drop or settings change, Pinchy automatically refreshes the conversation history. See Chat Connection States.
-
Seat-cap enforcement for licensed deployments — Settings → Users now shows current seat usage (active users + pending invites) against the licensed
maxUserscap. The Invite button is disabled when at the cap, and the invite endpoint refuses to issue new invitations with auser.invite_blockedaudit entry. License expiry banner refreshes without a page reload. -
Integration delete with preflight — deleting an integration now shows a dialog with the agent usage count up front. If agents are connected, you can detach-and-delete in one step instead of hunting through every agent. The state machine handles in-flight deletions cleanly so a failed delete doesn’t leave orphaned references.
-
Customizing your deployment — new guide documents the supported customization surface:
docker-compose.override.yml. Pinchy’sdocker-compose.ymlis owned by the project and replaced on upgrade — overrides go into the override file, which Docker Compose merges automatically and upgrades never touch. See Customizing Your Deployment. -
OpenClaw runtime updated to 2026.4.27 — the underlying agent runtime gets a significant bump. Notably: spurious gateway restarts on agent-config changes are eliminated (Pinchy now supplements the OpenClaw-managed
channels.telegramfields so the runtime sees no diff for Telegram-unrelated changes). The usage poller no longer runs immediately on connect, avoiding a CPU-boundsessions.listscan that was blocking the event loop during startup. No action required on upgrade.
Heads-up: Google template-model realignment
Section titled “Heads-up: Google template-model realignment”If you create new agents from a template with the Google provider, the balanced tier now picks gemini-2.5-flash instead of gemini-2.5-pro, matching Google’s own tier descriptions (Flash is “best price-performance”; Pro is the reasoning tier). The fast tier picks gemini-2.5-flash-lite, and reasoning picks gemini-2.5-pro. Existing agents are unaffected — model IDs are only resolved at agent-creation time and never re-resolved on existing agents.
Upgrading from v0.4.3 to v0.4.4
Section titled “Upgrading from v0.4.3 to v0.4.4”Standard upgrade — no breaking changes, no new required environment variables.
curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.4.4/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dWhat’s fixed in v0.4.4
Section titled “What’s fixed in v0.4.4”- Integrations list no longer blanks out when one row can’t be decrypted — if the
ENCRYPTION_KEYever changed (e.g. accidentally overridden via.env), one un-decryptable row inintegration_connectionssilently causedGET /api/integrationsto return 500, and the UI fell back to “No integrations configured yet” for every integration — including freshly-added ones that would decrypt fine. Each row is now decrypted in isolation; unreadable rows surface in Settings → Integrations as a warning card with a Delete action so admins can recover without DB access.regenerateOpenClawConfig()got the same per-row isolation, so one broken connection no longer takes down every agent’s config.
Upgrading from v0.4.2 to v0.4.3
Section titled “Upgrading from v0.4.2 to v0.4.3”curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.4.3/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dPort binding change — action required if you use direct port access
Section titled “Port binding change — action required if you use direct port access”The default port binding changed from 0.0.0.0:7777 to 127.0.0.1:7777. After upgrading, Pinchy will only accept connections from localhost.
If you have a reverse proxy (Caddy, nginx): No action needed — this is how it should be.
If you access Pinchy directly on port 7777 (no reverse proxy): Add this line to /opt/pinchy/.env to restore the previous behavior:
PINCHY_PORT=0.0.0.0:7777We strongly recommend setting up a reverse proxy instead. Docker bypasses host firewall rules (UFW), so 0.0.0.0:7777 exposes the port to the internet regardless of your firewall configuration.
Upgrading from v0.4.1 to v0.4.2
Section titled “Upgrading from v0.4.1 to v0.4.2”Standard upgrade — no breaking changes, no new required environment variables.
curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.4.2/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dWhat’s fixed in v0.4.2
Section titled “What’s fixed in v0.4.2”- Pinchy reconnects cleanly after the OpenClaw container is recreated — on upgrades that replaced the OpenClaw container, Pinchy would repeatedly log
token_mismatch/token_missingand refuse to connect to the gateway. Root cause: once a device is paired, OpenClaw accepts only the per-device token it issued at pairing, not the gateway bootstrap token fromopenclaw.json. Pinchy’s client library now persists that per-device token alongside the device identity and sends it on reconnect, and discards it automatically if OpenClaw ever rejects it so re-pairing just works. (openclaw-nodebumped from 0.3.1 to 0.4.0.)
Upgrading from v0.4.0 to v0.4.1
Section titled “Upgrading from v0.4.0 to v0.4.1”Standard upgrade — no breaking changes, no new required environment variables.
curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.4.1/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dWhat’s fixed in v0.4.1
Section titled “What’s fixed in v0.4.1”- Smithers can read the platform docs again — in every clean v0.4.0 install, Smithers’
docs_listanddocs_readtools pointed at an empty directory (relative bind-mount indocker-compose.ymlresolved to nothing without a co-located source tree). The docs are now baked into the OpenClaw image itself, so this works in every deploy shape. - Security patches — transitive-dependency vulnerabilities flagged by osv-scanner were patched.
- Docs improvements — the Hetzner deploy guide now requires an SSH key at server creation (the old “skip SSH keys” instruction left servers with no login path), and the upgrade guide gained a recovery path for legacy v0.3.0 deployments affected by that gap.
Upgrading from v0.3.0 to v0.4.0
Section titled “Upgrading from v0.3.0 to v0.4.0”Standard upgrade — no breaking changes, no new required environment variables.
curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.4.0/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dIf you deployed v0.3.0 without an SSH key
Section titled “If you deployed v0.3.0 without an SSH key”A small number of early Hetzner deployments followed an older version of our guide that said “skip the SSH key.” Those servers have no SSH access at all — the upgrade above can’t run. Recover access like this:
-
Reset the root password in Hetzner Cloud
In the Hetzner Cloud Console, open your server’s detail page. In the actions menu (top right, “···”), click Reset Root Password. Hetzner shows a one-time password — copy it.
-
Log in via the web console
On the same detail page, click the
>_icon to open a browser terminal. At thelogin:prompt enterroot, then the password from step 1. -
Install an SSH key
If your GitHub account has an SSH key attached (Settings → SSH keys), this is the shortest path:
Terminal window ssh-import-id-gh YOUR_GITHUB_USERNAMEIt fetches every public key on your GitHub profile and writes them to
~/.ssh/authorized_keyswith the right permissions.No GitHub keys? Create one locally (
ssh-keygen -t ed25519) first and upload it to your GitHub account — the command above then works. Manual fallback:mkdir -p ~/.ssh && curl -L github.com/YOUR_USER.keys >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys. -
Verify SSH works from your local machine
Terminal window ssh root@YOUR_SERVER_IPOnce you’re in via SSH, proceed with the standard upgrade above.
What’s new in v0.4.0
Section titled “What’s new in v0.4.0”- Telegram channels — connect any agent to a Telegram bot. Users link their accounts with a pairing code and chat with agents from their phone. See Set Up Telegram.
- Odoo ERP integration — give agents scoped, permission-aware access to Odoo with 16 pre-built agent templates. See Connect Odoo.
- Ollama (local and cloud) — run agents fully air-gapped on your own hardware, or use Ollama Cloud’s hosted open-source models. See Set Up Local Ollama and Manage LLM Providers.
- Usage dashboard improvements — cache-token tracking, source breakdown (chat vs. system vs. plugin), and a background poller that captures OpenClaw usage even for work that doesn’t flow through the web UI.
- Domain lock and insecure-mode banner — lock Pinchy to a canonical HTTPS hostname; a warning banner appears when running without HTTPS on a bound IP/domain. See Lock Pinchy to a Domain.
- Audit log event status — every audit entry (not just tool calls) now shows success/failure with filterable status. Entries from earlier versions show a neutral placeholder.
- Disconnect recovery during chat — if the OpenClaw gateway disconnects mid-conversation, Pinchy detects it, tells the user, and recovers automatically when the gateway returns.
- LLM provider errors surfaced in chat — provider failures (invalid key, rate limit, no credits) now appear as a clear error card in the chat with an admin hint, instead of failing silently.
- Pre-built Docker images on GHCR —
docker compose pullfetches images directly from GHCR (no local build step), making upgrades faster. - OpenClaw runtime updated to 2026.4.12.
Upgrading from v0.2.1 to v0.3.0
Section titled “Upgrading from v0.2.1 to v0.3.0”Standard upgrade — no breaking changes, no new required environment variables.
curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.3.0/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dWhat’s new in v0.3.0
Section titled “What’s new in v0.3.0”- Usage & Cost Stats dashboard — admins can view token usage and estimated costs per agent and per user at
/usage. - Smart PDF reading — Knowledge Base agents can now extract text from PDFs automatically.
- Dynamic model selection — the default model is selected from your provider’s live model list rather than being hardcoded.
- Rate limiting on WebSocket connections — protects the gateway from connection floods.
- Setup password recovery — admins can recover access via the
PINCHY_ADMIN_EMAILenvironment variable if locked out. - Security hardening — timing-safe token validation, fail-closed audit logging.
New optional environment variable: PINCHY_ADMIN_EMAIL
Section titled “New optional environment variable: PINCHY_ADMIN_EMAIL”If you want to be able to recover admin access via the setup wizard, add this to your .env:
PINCHY_ADMIN_EMAIL=your-admin@example.comThis is optional — Pinchy works fine without it.
Upgrading from v0.2.0 to v0.2.1
Section titled “Upgrading from v0.2.0 to v0.2.1”This is a docs-only release — no code changes, no database migrations, no breaking changes. Just pull the new tag and rebuild:
curl -fsSL https://raw.githubusercontent.com/heypinchy/pinchy/v0.2.1/docker-compose.yml -o docker-compose.ymldocker compose pull && docker compose up -dUpgrading from v0.1.0 to v0.2.0
Section titled “Upgrading from v0.1.0 to v0.2.0”This section covers what changed and what to expect.
All users must log in again
Section titled “All users must log in again”The authentication system was upgraded to Better Auth. Existing login sessions are invalidated during the migration. Passwords are preserved — users just need to log in again.
New environment variable: PINCHY_ENTERPRISE_KEY
Section titled “New environment variable: PINCHY_ENTERPRISE_KEY”v0.2.0 introduces enterprise features (Groups, RBAC, agent access control). To enable them, set the PINCHY_ENTERPRISE_KEY environment variable in your .env file or docker-compose.yml. This is optional — Pinchy works fine without it, and the key can also be entered via Settings in the UI.
OpenClaw runtime updated
Section titled “OpenClaw runtime updated”The bundled OpenClaw runtime was updated from 2026.3.7 to 2026.3.13. This happens automatically when you pull the new images with docker compose pull.
Version history
Section titled “Version history”Check the Releases page for detailed changelogs and any version-specific upgrade notes.