zenform
Zen browser as code. Keep your sidebar (Essentials, pinned folders, pinned tabs, labels and icons) in small, readable files. See what applying them would change, then apply.
$ zenform plan
+ 117 Exports [Now] https://tracker.example.com/browse/APP-117
~ 'Inbox - me@example.com - Mail' -> 'Mail' [essentials]
- unpin 'Old pin' (becomes an ordinary tab)
icons: 1 filled from the favicon database
This is a plan; nothing was written. Close Zen, then run `zenform apply`.
Status: alpha, and unofficial. zenform is an independent tool and is not affiliated with Zen Browser. It edits an undocumented file that Zen can change in any release; see Safety. Tested on macOS with Zen 1.24.3b.
Why
- Sync with git or a synced folder. Your browser setup becomes a few text files you can version, review and share between machines. Syncing config files is safe; syncing the browser's own state files is not.
- Readable. One file per concern, TOML, one pin per line, so a diff shows exactly what changed.
- Works with AI agents.
dumpgives an agent the current state in the same format it edits,plan --jsonis a safe dry run it can read, and it never needs to touch your live profile. See AGENTS.md.
Install
uv tool install zenform # or: pipx install zenform
Python 3.11 or newer, no other dependencies. From source: uv tool install git+https://github.com/cathal-killeen/zenform.
Use
zenform dump --out ~/zen-config # write your current pins as a config directory (start here)
$EDITOR ~/zen-config/folders/10-*.toml
export ZENFORM_CONFIG=~/zen-config # or pass --config, or run from inside the directory
zenform plan # what would change; writes nothing
# quit Zen, then:
zenform apply # backs up, writes, reads back to check
zenform rollback # undo the last apply (Zen closed)
zenform doctor # profile, Zen version, session format, config
The config
zen-config/
zenform.toml workspace = "Work"; keep_folders = ["Pull Requests"]
essentials.toml the icon tiles
folders/
10-code.toml name = "Code"; pins = [ ... ] (folders appear in file-name order)
20-tickets.toml
loose.toml optional: pins outside any folder
# folders/10-code.toml
name = "Code"
pins = [
{label = "app MRs", url = "https://git.example.com/team/app/-/merge_requests"},
{label = "api MRs", url = "https://git.example.com/team/api/-/merge_requests"},
]
- label: what the sidebar shows; keep it to 14 characters or fewer (zenform warns).
- url: the pin's home page. A pin Zen already has with the same home URL keeps its history and icon, so reuse the URL
dumpprinted for pins you keep. - keep_folders: folders zenform leaves exactly as they are (for example folders Zen manages itself).
- Unknown keys are errors, so a typo does not silently do nothing.
See examples/config.
What apply does and does not do
- Pins in the config are created, relabelled or moved. A pin the config no longer lists becomes an ordinary tab; nothing is closed. Open tabs are never edited.
- A pin with no icon is given one from your profile's favicon database (sites you have visited), so it is not blank until its page loads. If the site was never visited, it stays blank until opened once.
- Only the workspace named in
zenform.tomlis managed. Essentials span workspaces, so they are always managed.
Safety
Zen keeps pins in zen-sessions.jsonlz4 and rewrites it while running and on quit. So:
applyrefuses to run while Zen is open, backs the file up tozenform-backups/in the profile first, checks the result before writing and reads it back after, and restores the backup itself if that check fails.plananddumponly read. The favicon database is read from a copy.- The format is undocumented (what we know).
doctorwarns on a Zen version that has not been tested, and every command refuses a session file that does not have the expected shape. - Do not put real session files in a public repo: they contain your tab history.
Agents
Point an agent at the config directory and AGENTS.md. The loop is: zenform dump for the current state, edit the files, zenform plan --json to check, and leave the apply to you.
Development
PYTHONPATH=src python3 -W error -m unittest discover -s tests
uvx ruff check .
Standard library only, on purpose: it has to work on a bare machine, and a tool that edits your browser should be easy to audit.
License
MIT
Metadata
Release files for zenform 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zenform-0.1.0.tar.gz | 24.6 kB | With provenance | Details for zenform-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zenform-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zenform-0.1.0-py3-none-any.whl |
Total release size: 43.4 kB
Release files / zenform-0.1.0.tar.gz
| Download URL | zenform-0.1.0.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1dc09c1fbcac425001806ad3029f1ae4bde4d1fc8a10624bcbc6e085186a115
|
|
BLAKE2b-256 checksum How to use checksums |
bb413b211b4eba9bc8c1f3a73ada1dbb058966da3962ed2e618aa227acd86f88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / zenform-0.1.0-py3-none-any.whl
| Download URL | zenform-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bf049d88297612235f0c8b6be91c5376c1d0b5741905dbd9f33baa1cf4a55c8
|
|
BLAKE2b-256 checksum How to use checksums |
8836ff6bf0f372df49d854f4f64c10df4076112dfcf627cf0aa44f3f7b1efdd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for zenform 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zenform-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.