Docs · Servers

packinggoods in Docker

Run packinggoods on a server or a NAS that has no desktop: its gateway serves your models to agents on other computers, and you add providers and sign in to subscriptions from a page in your browser.

Imageghcr.io/chanccer/packinggoods, for linux/amd64 and linux/arm64
Tagslatest (the newest release), 0.1.1150 (one release), 0.1, edge (every change on main)
Ports3425 the gateway agents call; 3430 the browser UI, when the container runs packinggoods web; it answers the gateway’s /v1 routes too, so a reverse proxy needs only this port
Volume/config: providers, keys, sign-ins, plugins and usage
Usernonroot (uid 65532)

The image holds packinggoods’s terminal-only build on Debian 12 slim, with bash for a terminal in the container and curl for the installers of the CLIs some subscriptions sign in with (Cursor, Devin, Grok Build). It runs packinggoods serve (the gateway alone) unless given another command. The container finds no agents to wire, so packinggoods in it is a gateway: the agents that use it run elsewhere.

Run it

Run it with the browser UI, a key for that page you keep across restarts, and both ports on the host’s loopback only:

Shell
docker run -d --name packinggoods --restart unless-stopped \
  -p 127.0.0.1:3425:3425 -p 127.0.0.1:3430:3430 \
  -e PACKINGGOODS_WEB_KEY=$(openssl rand -hex 16) \
  -v packinggoods-config:/config \
  ghcr.io/chanccer/packinggoods:latest web --addr 0.0.0.0:3430 --no-open

docker logs packinggoods

The log names the page with its key:

Output
● packinggoods web on http://127.0.0.1:3430/?k=0f3c9a1e…
  on the network http://172.17.0.2:3430/?k=0f3c9a1e…
  these are the container's own addresses: other machines use the host's, and PACKINGGOODS_PUBLIC_URL=http://<host>:<port> puts it here
  other containers on this host http://172.17.0.1:3425
! anyone with the link can change packinggoods and see its keys, and the network carries it unencrypted
  the link carries PACKINGGOODS_WEB_KEY · gateway http://127.0.0.1:3425 · Ctrl-C to stop
Agents outside the container need a gateway key. In the container any key works. A request from the host or another machine is answered only with an enabled gateway key, and gets 401 without one: make one as in Gateway keys. 127.0.0.1: in -p keeps a port on the host; leave it out, or name the host’s LAN or VPN address, for other machines to reach it.

Without web --addr 0.0.0.0:3430 --no-open the container runs the gateway alone, which you then set up from a terminal in it (docker exec -it packinggoods packinggoods provider add …). A folder bind-mounted at /config works in place of the named volume, if uid 65532 can write it: sudo chown -R 65532:65532 /volume1/docker/packinggoods/config.

The browser UI

Open the link from the log. The key in it is traded for a cookie and taken out of the address; a page opened without it is turned away (401). With PACKINGGOODS_WEB_KEY set (16 or more letters, digits or - . _ ~; openssl rand -hex 16 makes one) the key stays the same across restarts and the browser stays signed in for 400 days. Without it, every start makes a new key and the cookie lasts the browser session.

The page is in gateway mode: Providers, Gateway, Routing, Usage, Sessions, Plugins and Settings, with no Agents, since there are no agents in the container. Library has its MCP servers alone, with the MCP router: other computers’ apps connect at the router’s address with a gateway key. Sessions lists only the sessions of agents on other computers that came through this gateway, never this machine’s agents’ files. Settings → General → Gateway mode turns it off.

On a NAS or a server you reach over SSH, open the page through a tunnel rather than publishing 3430: ssh -L 3430:127.0.0.1:3430 you@nas, then the log’s link on your own computer.

Anyone with the link can change packinggoods and see its keys. Keep 3430 on loopback or a VPN. Across the network, serve it over HTTPS: give packinggoods a certificate with PACKINGGOODS_TLS_CERT and PACKINGGOODS_TLS_KEY, or put it behind a reverse proxy with TLS, such as Caddy.

Sign in to subscriptions

Add API keys on Providers as on the desktop. A subscription’s sign-in (ChatGPT, Claude…) opens the vendor’s page in your browser, and when you are done the vendor sends that browser back to localhost, for ChatGPT http://localhost:1455/auth/callback?code=…. That is your own computer, not the container, so the page doesn’t load. Copy its whole address from the address bar and paste it into the sign-in’s Callback URL field.

The same from a terminal:

Shell
docker exec -it packinggoods packinggoods accounts add codex

Open the link it prints, sign in, then paste the address the browser ended on. The browser UI can also import sign-ins from a file.

A Claude subscription is signed in to and answered through Claude Code, which the image doesn’t have. Have packinggoods download Anthropic’s own build first: it says the version, where it comes from and where it goes, asks, and checks the download’s SHA-256 against Anthropic’s manifest. It is kept in /config/cache, on the volume, so a new image keeps it, and packinggoods keeps it at Claude Code’s newest release by itself: it looks a minute after it starts and every six hours, and downloads a newer one the same way. Nothing needs installing again after an update. To hold a version, set -e DISABLE_AUTOUPDATER=1. packinggoods accounts add claude offers it too when Claude Code is missing.

Shell
docker exec -it packinggoods packinggoods claude-code install

A Grok (SuperGrok) subscription signs in through xAI’s Grok Build CLI, which the image doesn’t have either. Its sign-in, in the browser UI or with packinggoods plugin login grok, installs it first, as xAI’s installer does: the stable version from x.ai/cli, kept in /config/home/.grok. To use a Grok Build binary you put on the volume yourself, set GROK_BIN_DIR to the folder holding it.

MCP servers

The Library’s MCP servers run in the container, and the image has what they start with: npx, node and npm (Node 24), and uvx, uv, python and python3. A server started with uvx or python downloads its Python into the volume the first time, which takes a few seconds. A server started with docker doesn’t run: the container has no Docker of its own.

The image has no browser. Chrome DevTools’ and Playwright’s MCP servers start a Chrome of their own, so in the container their row in the Library says no Chrome here. Use Packinggoods Browser instead, which acts in your own browser, or point the server at a Chrome it can reach: --browserUrl http://host:9222 for Chrome DevTools, --cdp-endpoint for Playwright.

Your own browser

Packinggoods Browser lets agents act in your own browser, through its extension. The extension can’t be loaded from the container’s folders, so in the browser UI open Library → Packinggoods Browser and click Download the extension. The zip is pointed at the page’s own address, with a gateway key named Packinggoods Browser of its own. Unzip it, open chrome://extensions, turn on Developer mode and click Load unpacked on the unzipped folder. An extension already loaded takes the address (http://localhost:3430, or the gateway’s published port) and a gateway key in its popup.

The Packinggoods Browser key connects the extension and nothing else: it can’t use models, MCP servers or stats, so a copy of the zip left in Downloads spends nothing. The host’s browser reaches the container from Docker’s bridge, not from the container’s own computer, so it is that key’s alone and the container’s agents don’t use it yet (#5529). To use it from an agent on the host, give that agent a gateway key of its own with full access, connect the extension with the same key in its popup, and call /mcp/packinggoods/browser with it. A browser given another key is that key’s alone, and it is let go once its key is turned off, removed or rotated.

What is kept

Everything packinggoods writes is under /config, so a restart, or a new container on the same volume, keeps your providers, keys, sign-ins and plugins.

PathHolds
/config/packinggoodspackinggoods’s own files: settings.json, providers, gateway keys, routing groups
/config/homethe container’s HOME: sign-ins kept where their agent keeps them (~/.codex, ~/.claude…)
/config/cachethe model catalog, Bun, which plugins run on (downloaded the first time one is used), and the Claude Code packinggoods claude-code install downloaded
/config/data, /config/statethe rest of what packinggoods keeps

A volume made by an older image keeps working: packinggoods adds the folders it lacks when it starts. Only sign-ins made with that older image, which lived outside the volume, have to be made again.

Environment

VariableWhat it does
PACKINGGOODS_ADDRwhere the gateway listens. The image sets 0.0.0.0:3425, so the published port reaches it.
PACKINGGOODS_PUBLIC_URLthe address other machines reach the gateway at, such as http://192.168.1.20:3425 (the host’s or the NAS’s, on the published port), or a reverse proxy’s base URL. In the container packinggoods sees only Docker’s own 172.17.x address; with this set, the address it shows and prints is the one to use.
PACKINGGOODS_WEB_KEYthe browser UI’s key, kept across restarts (16+ characters)
PACKINGGOODS_NAMEwhat this packinggoods is called: the browser tab’s title reads <name> · packinggoods, to tell several deployments apart. A name set on the page, in Settings → Network and sharing → Advanced → Name, comes first.
PACKINGGOODS_TLS_CERT, PACKINGGOODS_TLS_KEYa PEM certificate (its chain after it) and its key, mounted into the container: other machines then reach the gateway and the browser UI over https:// only, and plain HTTP from them gets 400. The files are read again when they change, so a renewal needs no restart. One without the other, or files that don’t load, stop packinggoods from starting. Use https:// in PACKINGGOODS_PUBLIC_URL too.
PACKINGGOODS_ALLOW_IPSthe only addresses other machines may reach the gateway and the browser UI from, as IPs and CIDR ranges: 203.0.113.7,10.0.0.0/8,2001:db8::/32. Any other address gets 403, even with a gateway key. Unset lets every address in, each with a key. See Allowed addresses.
HOME, XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_DATA_HOME, XDG_STATE_HOMEset by the image to the folders under /config above; leave them

Gateway keys and other machines

  1. Make a key for each clientGateway → Gateway keys, or in a terminal docker exec packinggoods packinggoods gateway-key add "Laptop", which prints the new sk-packinggoods-key-…. Every request from outside the container, the host’s own included, must carry an enabled gateway key, and one without gets 401. A key can have its own daily, weekly, monthly, every-N-days or every-N-hours limit and its own list of models (packinggoods gateway-key limit, packinggoods gateway-key models).
  2. Publish the portRecreate the container with -p 3425:3425, or bound to the NAS’s LAN or VPN address (-p 192.168.1.20:3425:3425), and with -e PACKINGGOODS_PUBLIC_URL=http://192.168.1.20:3425.

On each other computer, point the agent at the gateway with one of those keys as its API key: http://192.168.1.20:3425/v1 for an OpenAI client, http://192.168.1.20:3425 for an Anthropic or Gemini one. Model ids are provider/model, or a routing group’s; GET /v1/models lists them. If that computer runs packinggoods itself, add the container as a Remote packinggoods instead, and packinggoods wires its agents for you.

Other containers on the same host. Another container on the NAS reaches packinggoods at the host, through the Docker bridge’s gateway and the published port: http://172.17.0.1:3425 on Docker’s default bridge. The container’s own 172.17.x address is no use to it, and the host’s LAN address may not be either, as a NAS’s firewall can keep containers from it. host.docker.internal is the same address on Docker Desktop, and on Linux only in a container given extra_hosts: ["host.docker.internal:host-gateway"]. A container on packinggoods’s own compose network, or one you made, can use its name, http://packinggoods:3425. Either way it sends a gateway key. The log and the browser UI list this address as Other containers on this host, after the host’s address the page was opened at.

Settings → Network and sharing → Share on local network isn’t needed in the container: turning it on also makes a gateway key named Packinggoods, and the gateway asks for a key from outside the container either way.

Upgrading from an earlier image. An agent outside the container that sends packinggoods, or any other key that isn’t an enabled gateway key, now gets 401 (“the API key sent is not an enabled packinggoods gateway key”). Make it a key as above and put that in the agent’s settings. Agents that already send a gateway key, and a Remote packinggoods set up with one, keep working.

Allowed addresses. On a public host, set -e PACKINGGOODS_ALLOW_IPS=203.0.113.7,10.0.0.0/8 to the addresses your clients come from. A request from any other address is refused 403 before its key is looked at, so a key that leaks is no use from elsewhere; the refusal names the address it came from, as does the container’s log. packinggoods judges the address of the connection itself, never an X-Forwarded-For header, and a mistyped entry lets nothing in rather than everything. Docker’s default bridge network passes a client’s own address into the container, but a request from the host itself arrives from the bridge’s gateway (172.17.0.1), and Docker Desktop and rootless Docker show every client as one address of their own: add that, or check what the 403 says. Behind a reverse proxy or tunnel, every request comes from the proxy’s address, so limit who reaches packinggoods at the proxy. On the desktop app the same list is Settings → Network and sharing → Allowed addresses.

Over the internet, prefer a VPN such as Tailscale or WireGuard to opening 3425. A reverse proxy or tunnel in front of the container is the network too: its clients need a gateway key like any other machine’s.

Claude Code’s status line, with Claude Code outside the container. The status line square can’t reach another machine’s ~/.claude/settings.json, and the command it writes names a binary in the container. The gateway answers the same line itself: on the machine Claude Code runs on, set statusLine in ~/.claude/settings.json to {"type": "command", "command": "curl -fsS -m 1 -H 'Authorization: Bearer sk-packinggoods-key-…' --data-binary @- http://<host>:3425/v1/packinggoods/statusline || true"}, with the host or address that reaches the container and a gateway key (a read-only key is enough). A key held to a budget, models or accounts gets the line once its owner turns on Quotas for it, with only the accounts it may use. Add ?format=json for the same as JSON (the line, the model, and each account’s windows with used and resetsAt), for a status line that draws its own. Claude Code runs it on every message and passes its session on stdin, which adds the model the session went to. The same command is shown in the browser UI under Settings → About.

Docker Compose on a NAS

compose.yaml
services:
  packinggoods:
    image: ghcr.io/chanccer/packinggoods:latest
    restart: unless-stopped
    ports:
      # 127.0.0.1: the host alone; every caller outside the container needs a gateway key
      - "127.0.0.1:3425:3425"
      - "127.0.0.1:3430:3430"
    environment:
      PACKINGGOODS_PUBLIC_URL: http://<nas-address>:3425
      PACKINGGOODS_WEB_KEY: <random-key>
    volumes:
      - ./config:/config
    command: [web, --addr, 0.0.0.0:3430, --no-open]

Then: sudo chown -R 65532:65532 ./config, docker compose up -d, open http://127.0.0.1:3430/?k=<random-key> through an SSH tunnel, add your providers and make a gateway key for each machine. For other machines to reach the gateway, change its line to "3425:3425" (or the NAS’s LAN or VPN address) and run docker compose up -d again.

Health, terminal, updates

Questions or a setup worth sharing? Ask on Discord. The reference has the details.