How do I download a Codex pet package?
Open the Codex pet gallery, choose a pet, and download its package zip from the pet detail page. The package should contain pet.json and spritesheet.webp so you can place both files under ~/.codex/pets/<pet-id>/.
Do I need hatch-pet to use an existing Codex pet?
No. hatch-pet is for generating a new pet, not for using an existing package. To use an existing Codex pet, add its pet.json and spritesheet.webp under ~/.codex/pets/<pet-id>/ or use the pet detail page's AI setup prompt.
Where do custom Codex pets go?
Custom Codex pets go under ~/.codex/pets/<pet-id>/. The folder should contain pet.json and spritesheet.webp, with the manifest spritesheetPath pointing to the image file.
How do I turn on the pet after installing it?
Use /pet inside Codex after the package is in the local pets folder, or open Settings -> Appearance -> Pets and choose the installed pet. Use Open folder or Refresh custom pets when those controls are available. If the pet still does not appear, confirm the folder name, pet.json id, and spritesheetPath all match.
What size should a Codex pet spritesheet be?
The downloadable Codex pets on this site use a 1536 x 1872 spritesheet with 8 columns, 9 rows, and 192 x 208 frame cells. For a newly generated pet, follow the current installed hatch-pet and renderer contract and verify the reported dimensions before installation.
Can spritesheetPath be an external URL?
For local Codex installation, spritesheetPath should point to the image file inside the pet folder. For web preview, this tool can load a browser-accessible URL because the React renderer only needs an image src.
What causes a Codex pet preview to look broken?
The most common cause is an image that does not follow the shared atlas dimensions. Check that the spritesheet is 1536 x 1872, uses 8 columns and 9 rows, and keeps each frame aligned to 192 x 208 cells.
Why can a custom pet path fail in WSL?
Codex and WSL can disagree about Windows and Linux path forms. Keep the package under the Codex home used by the running app, use the Pets settings Open folder action when available, and refresh custom pets after copying the files.
Can pet.json define custom animation timing and app events?
Do not rely on that today. Custom packages provide the manifest and spritesheet, while the Codex app still owns animation timing, frame sequences, state chaining, and activity-event mapping.