~/codex-pets — zsh

> codex pets

Hatch your own Codex Pet

Codex Pets are little pixel companions that float over the Codex app and change animation to show what your agent is doing. Here is exactly how to make one, with specs that actually match the app.

Try a state:
Domain for salecodexpet.com · make an offer →

How to make a Codex Pet

Three ways in, from 10 seconds to a weekend.

1. Use a built-in pet 10 sec

Type /pet in the Codex composer, or open Settings → Appearance → Pets. From there you can wake, hide or refresh pets.

2. Hatch one with the hatch-pet skill 5 min

  1. Install the skill:
    $skill-installer hatch-pet
  2. Reload skills: open the command menu (⌘K on Mac, CtrlK on Windows) and choose Force Reload Skills.
  3. Ask for a pet:
    $hatch-pet create a tiny desk goblin
    or $hatch-pet turn my dog into a Codex pet.

The skill draws the animation rows, assembles the sheet, validates it, makes previews and packages the folder for you.

3. Make one by hand a weekend

1

Design one character

Full body, front facing, readable at about 100 px tall. Use a small palette and a bold outline. Keep the same species, markings, colours and props in every frame: drift between frames is the most common reason a pet looks wrong.

2

Animate 9 rows

idle (6 frames), running-right (8), running-left (8), waving (4), jumping (5), failed (8), waiting (6), running (6), review (6). See states.txt for what each one means.

3

Assemble the atlas

1536 × 1872 px, 8 columns × 9 rows, each cell 192 × 208 px. Transparent background. Leave unused cells fully transparent. No grid lines, labels, gutters or drop shadows: the app slices the sheet by math, so anything extra shows up on screen. Save as spritesheet.webp (PNG also works).

4

Write pet.json

{
  "id": "desk-goblin",
  "displayName": "Desk Goblin",
  "description": "A tiny goblin who guards your terminal.",
  "spritesheetPath": "spritesheet.webp"
}

Or build it with the pet.json maker.

5

Install it

Make a folder named after your pet and put both files in it:

# macOS / Linux
mkdir -p ~/.codex/pets/desk-goblin
cp pet.json spritesheet.webp ~/.codex/pets/desk-goblin/

# Windows (PowerShell)
mkdir $env:USERPROFILE\.codex\pets\desk-goblin
copy pet.json, spritesheet.webp $env:USERPROFILE\.codex\pets\desk-goblin\

If you set CODEX_HOME, use $CODEX_HOME/pets/ instead. Then open Settings → Pets, press Refresh (or restart Codex) and pick your pet.

Common mistakes

  • Sheet is not exactly 1536 × 1872 (or 1536 × 2288 for v2).
  • Grid lines, labels or a coloured background left in the export.
  • Folder name and id don't match. Keep them the same.
  • Only one of the two files is in the folder.
  • Soft, blurry AI edges. Clean them up so every pixel is either solid or transparent.
  • Character changes between frames (new colours, missing tail, different size).

Good tools

  • Aseprite: the standard paid pixel editor, with animation timelines.
  • Pixelorama and LibreSprite: free and open source.
  • Piskel: free, runs in the browser.
  • AI image tools are fine for a first draft. Always clean up the result by hand.
  • Then run it through our spritesheet checker.

Codex Pet spritesheet specs

The atlas contract, in one place.

Sheet1536 × 1872
Grid8 × 9
Cell192 × 208
FormatWebP / PNG

Rows, frames and timing

RowStateFramesTiming (ms)
0idle6280, 110, 110, 140, 140, 320
1running-right8120 each, last 220
2running-left8120 each, last 220
3waving4140 each, last 280
4jumping5140 each, last 280
5failed8140 each, last 240
6waiting6150 each, last 260
7running6120 each, last 220
8review6150 each, last 280

pet.json fields

FieldWhat it is
idShort identifier. Match the folder name.
displayNameName shown in Settings.
descriptionOne short sentence.
spritesheetPathFile name of the sheet, usually spritesheet.webp.
spriteVersionNumberSet to 2 for v2 sheets only.

v2: look directions

Newer community pets use a taller 1536 × 2288 sheet: 8 × 11 cells. Rows 0–8 are the same as above. Rows 9 and 10 hold 16 look directions, clockwise from 0° in 22.5° steps, so the pet can glance toward your cursor. Add "spriteVersionNumber": 2 to pet.json. v1 sheets keep working.

Validation checklist

  • Exact size, transparent background.
  • Every used cell has art; every unused cell is fully transparent.
  • Frame counts match the table.
  • Same character in every frame.

Where these numbers come from. The specs match the hatch-pet skill's atlas contract and animation-row reference, and the v2 layout matches packages shared on the OpenAI developer community forum (checked November 2026). codexpet.com is unofficial. If the app changes, the app wins. Community thread · Hatch guide

What each pet state means

Your pet is a status light with a personality. Tap a row to play it.

Exactly which agent events trigger which animation is up to the app and can change between versions.

Spritesheet checker

Drop your sheet to watch every state play and catch mistakes. Nothing is uploaded: it all runs in your browser.

pet.json maker

Codex Pets FAQ

What is a Codex Pet?

An optional animated pixel companion that floats over the Codex app. It changes animation to show what your agent is doing: working, waiting for you, ready for review or failed. You get status at a glance without switching windows.

Does a pet make Codex smarter?

No. It is purely visual: an ambient status light with a face. It just makes long agent sessions easier to keep an eye on, and more fun.

What size is the spritesheet?

1536 × 1872 px, 8 columns × 9 rows of 192 × 208 cells, transparent. v2 sheets are 1536 × 2288 with two extra rows of look directions. Full details in specs.json.

Where do custom pets go?

~/.codex/pets/<pet-id>/ on macOS and Linux, %USERPROFILE%\.codex\pets\<pet-id>\ on Windows. The folder holds pet.json and spritesheet.webp.

My pet doesn't show up. What now?

Check that the folder has both files, the folder name matches the id, and the sheet is the exact size. Then press Refresh in Settings → Pets, or restart Codex. Our checker catches most sheet problems.

WebP or PNG?

Both work. WebP is the usual choice because it's smaller.

Do I need a v2 sheet?

No. v1 sheets keep working. v2 only adds look directions.

Can I use the starter pets?

Yes. Byte, Pip, Hoot and Shroom are original to this site and released under CC0. Use them, remix them, ship them.

Is this site official?

No. codexpet.com is an independent community resource and is not affiliated with OpenAI. See about.txt.

About codexpet.com

Codex Pets turned a status bar into something you actually want to look at. This site exists to make building one easy: one clear guide, specs you can trust, a checker that catches mistakes, and a few free pets to start from.

Why people use pets

  • Ambient status. See "working", "needs you" and "done" from the corner of your eye.
  • Stay in flow. Fewer tab switches to check on a long-running task.
  • Personality. A mascot for your team, your project or your dog.
Not affiliated with OpenAI. codexpet.com is an independent, unofficial resource. It is not made, endorsed or sponsored by OpenAI. Codex and ChatGPT are trademarks of OpenAI. All pets and artwork on this site are original.

Fonts: Pixelify Sans and Silkscreen (SIL Open Font License).

Psst… this pet is looking for a new home.

codexpet.com is for sale

  • Exact match for "codex pet": short, memorable, .com.
  • Ready to go: a live, useful site with original art and tools.
  • High intent: people searching it want to make, find or install pets.
Opens your email app. Or write to offers@codexpet.com