Tell the machine what to do. It happens, often in parallel.
gozer is cooperative chip leasing for Tenstorrent boxes. Several agents, apps and scripts can share one machine, and each one gets the chips it asked for when its turn comes.
Your agents and apps do not need their own routine for asking politely for hardware. They queue up, keep working on other things until chips are free, do their work on the hardware, and carry on. Everyone gets a turn.
Install on Debian or Ubuntu
$ sudo apt install ./tt-gozer_0.5.0_all.deb
Download the .deb file from the latest release, then run the line above in the folder you saved it to.
A real session, line by line
Three agents share a box with two boards of two chips each. Each one asks for two chips. The output below is from the real gozer command, run against a test copy of that box when this page was built. Only the ids, process numbers and times are replaced with fixed values so the page is the same on every build.
-
$ gozer acquire --chips 2 --who claude:bench --reason 'llama decode benchmark' --owner-pid $$ granted: chips 0,1 (units 0000000000000002) export TT_VISIBLE_DEVICES=0000:01:00.0,0000:02:00.0 lease 0d219a release with: gozer release 0d219a owner pid 4121 (not detached -- held for as long as that pid lives, no grace window)
Step 1The first agent asks for two chips. gozer gives it a whole board, chips 0 and 1, and prints the
TT_VISIBLE_DEVICESline that points the Tenstorrent runtime at those chips.--owner-pid $$ties the lease to this shell, so it lasts as long as the shell does. -
$ gozer acquire --chips 2 --who claude:eval --reason 'accuracy eval' granted: chips 2,3 (units 0000000000000001) export TT_VISIBLE_DEVICES=0000:03:00.0,0000:04:00.0 lease f2ae86 release with: gozer release f2ae86
Step 2A second agent asks for two chips while the first is still working. It gets the other board, chips 2 and 3. The two agents never had to talk to each other.
-
$ gozer acquire --chips 2 --who claude:sdxl --reason 'image batch' queued: ticket 8fce position 1 ahead: (none) do other work, then: gozer wait 8fce exit 10
Step 3A third agent asks, and both boards are taken. It gets a ticket and first place in the queue. Exit code 10 means queued, so the agent knows to go on with work that needs no chips and come back later.
-
$ gozer status grain: board (2 boards, 4 chips) board 0000000000000002 (p300c) chip 0 0000:01:00.0 CLAIMED claude:bench pid 4121 chip 1 0000:02:00.0 CLAIMED claude:bench pid 4121 board 0000000000000001 (p300c) chip 2 0000:03:00.0 CLAIMED claude:eval pid 4187 chip 3 0000:04:00.0 CLAIMED claude:eval pid 4187 queue: 1) claude:sdxl wants 2 chip(s) since 2026-10-26T16:03:00Z
Step 4gozer statusshows the whole box: which agent holds each chip, and who is waiting.CLAIMEDmeans a lease covers the chip and no process has opened it yet. Once one does, the state becomesHELD. -
$ gozer release 0d219a reset ok; claim window opened for claude:sdxl
Step 5The first agent is done and releases its lease. gozer resets the chips so the next user starts from a clean state, and keeps the freed board for claude:sdxl, the agent at the front of the queue.
-
$ gozer wait 8fce --timeout 5s granted: chips 0,1 (units 0000000000000002) export TT_VISIBLE_DEVICES=0000:01:00.0,0000:02:00.0 lease 7b31c4 release with: gozer release 7b31c4
Step 6The queued agent comes back and runs
gozer waitwith its ticket. It gets chips 0 and 1 under a new lease of its own. -
$ gozer status grain: board (2 boards, 4 chips) board 0000000000000002 (p300c) chip 0 0000:01:00.0 CLAIMED claude:sdxl pid 4203 chip 1 0000:02:00.0 CLAIMED claude:sdxl pid 4203 board 0000000000000001 (p300c) chip 2 0000:03:00.0 CLAIMED claude:eval pid 4187 chip 3 0000:04:00.0 CLAIMED claude:eval pid 4187
Step 7Now claude:sdxl holds the first board and claude:eval still holds the second. Three agents have had chips on a box with room for two at a time.
-
$ gozer release 7b31c4 reset ok
Step 8claude:sdxl finishes and releases. The chips are reset, and the board is free for whoever asks next.
One afternoon on one box
This is real history from the project's own box on 26 October 2026, from 16:00 to 20:30 UTC. The box has two boards. Each row below is one board, and each block is one lease, labelled with the agent that held it. Time runs from left to right.
The log records why each agent asked for chips. That task text is left out of this page; only agent names and times are shown.
- claude:full-port-pilot
- claude:graft-accept
- claude:kernel-probe
- claude:metal-upgrade
- claude:orchard-kernel-probe
- claude:suite-control
- studio:animatediff
- studio:audio8-asr
Lease times as a table
| Agent | Board | Start | End | Length |
|---|---|---|---|---|
| claude:orchard-kernel-probe | Board 2 | 16:09:48 | 16:10:34 | 46 seconds |
| claude:orchard-kernel-probe | Board 2 | 16:11:30 | 16:12:15 | 45 seconds |
| studio:animatediff | Board 1 | 16:32:27 | 16:34:20 | 2 minutes |
| claude:metal-upgrade | Board 2 | 16:38:14 | 16:39:00 | 46 seconds |
| claude:orchard-kernel-probe | Board 1 | 16:39:09 | 16:39:56 | 47 seconds |
| claude:orchard-kernel-probe | Board 1 | 16:39:56 | 16:40:43 | 47 seconds |
| claude:orchard-kernel-probe | Board 1 | 16:40:43 | 16:41:31 | 48 seconds |
| claude:orchard-kernel-probe | Board 1 | 16:41:31 | 16:42:18 | 47 seconds |
| studio:animatediff | Board 1 | 16:44:45 | 16:48:31 | 4 minutes |
| studio:animatediff | Board 1 | 16:56:52 | 16:59:24 | 3 minutes |
| studio:audio8-asr | Board 2 | 16:59:11 | 17:00:33 | 1 minute |
| claude:kernel-probe | Board 2 | 17:03:46 | continues | 3 hours 26 minutes |
| claude:suite-control | Board 1 | 17:12:42 | 17:47:14 | 35 minutes |
| claude:graft-accept | Board 1 | 17:47:18 | 18:12:42 | 25 minutes |
| claude:full-port-pilot | Board 1 | 18:12:42 | 18:16:04 | 3 minutes |
| claude:graft-accept | Board 1 | 18:21:27 | 19:15:08 | 54 minutes |
| claude:graft-accept | Board 1 | 19:16:12 | 19:52:20 | 36 minutes |
| claude:graft-accept | Board 1 | 19:53:16 | continues | 37 minutes |
Each colour in the legend is one agent. Some leases lasted under a minute and are too narrow for a label; hover over a block to see its agent and times. On a narrow screen, the timeline scrolls sideways.
What happened
- claude:kernel-probe held a board for 4 hours 5 minutes, the longest lease in this log.
- claude:orchard-kernel-probe took and released a board 6 times, a typical lease lasting about 47 seconds.
- claude:full-port-pilot queued and waited 27 minutes for a board.
- claude:graft-accept queued and waited 9 minutes for a board.
- claude:graft-accept queued and waited 34 minutes for a board.
- The fastest handoff from a release to the next waiting agent took 4 seconds.
- 1 waiting agent got a board in the same second it was released.
How it works
- A lease for each board. You ask for a number of chips. gozer leases a whole board, because the Tenstorrent runtime's device visibility works at board level: a grant of one chip can expose both chips on its board. Each agent points the runtime at the chips it was given, so two agents on two boards stay out of each other's way.
- A queue. If no board is free, you get a ticket and a place in line. Your agent can keep doing work that needs no chips. When it runs
gozer waitwith the ticket, gozer hands it the chips as soon as a board is released. - A check that a chip is really in use. A lease record only says who asked. gozer also looks for an open device file under
/dev/tenstorrent, which proves a process is using the chip. When a lease's process has ended and its device is closed, gozer clears the lease the next time someone asks for chips. A lease taken by a baregozer acquirehas no process to watch, so gozer clears it only after 900 seconds (15 minutes) have passed since the grant with no device open. Either way, a crashed agent cannot hold a board forever.
What gozer does not do
gozer is cooperative. Any local user can release any lease, so it works because everyone on the box uses it. It does not stop a program that opens the chips without asking.
Install
gozer is a small Python program. It needs Python 3.10 or newer, and tt-smi to reset chips. The Debian package is a single architecture-independent file for Debian and Ubuntu.
- Install the package from the latest release.
$ sudo apt install ./tt-gozer_0.5.0_all.deb
- Link the three Claude Code skills into your own
~/.claude/skills, so Claude Code knows to lease chips before it uses them.$ gozer-install-skills
- See the state of the box.
$ gozer status
From a clone of the repository, run ./install.sh to get the same command and skills.
An example log
gozer keeps a history of every lease. The table below is an example of what it records, taken from the same afternoon on one box (26 October 2026, 16:00 to 20:30 UTC). Agents are listed by name in alphabetical order.
| Agent | Leases | Time held | Longest | Waited |
|---|---|---|---|---|
| claude:full-port-pilot | 1 | 3 min 22 s | 3 min 22 s | 27 min 11 s |
| claude:graft-accept | 4 | 3 h 30 min | 1 h 34 min | 42 min 39 s |
| claude:kernel-probe | 1 | 4 h 5 min | 4 h 5 min | none |
| claude:metal-upgrade | 1 | 46 s | 46 s | none |
| claude:orchard-kernel-probe | 6 | 4 min 40 s | 48 s | none |
| claude:suite-control | 1 | 34 min 32 s | 34 min 32 s | none |
| studio:animatediff | 3 | 8 min 11 s | 3 min 46 s | none |
| studio:audio8-asr | 1 | 1 min 22 s | 1 min 22 s | none |
Time held adds up the agent's leases that started in this window and have a recorded release. Waited is the time between joining the queue and being granted chips.
Who uses it
These public projects call gozer in their own code or scripts. Each line says how.
- tensixinet
Plays chip telemetry as synthesizer sound; starts its audio worker with gozer run, which leases the chips and resets them on exit. - tt-bio-demo
Protein-folding demo; its hardware runner wraps each run in gozer run when gozer is installed. - tt-discolike
Catalog and launcher for Gradio demo apps; shows live chip lease state from gozer status --json. - tt-orchard
Harness that brings up new models; its lease adapter calls gozer acquire, reset, release and status for each lease. - tt-station
Mac client and box agent for serving models; the agent runs gozer acquire before it starts a server and releases it after. - tt-tnt
Llama-like model built for Tenstorrent hardware; its training demo script runs the trainer under gozer run.