Import a pet
The starter pets and the pets in Codex's pet folder (~/.codex/pets) show up in Invite a friend on their own. Any other pet has to be imported.
At a glance
| From | Use | Kept in |
|---|---|---|
| An Open in PlayPets link on a gallery | Click it and say yes | pets/ in the data folder |
| A pet page address or a GitHub pet folder | Import → Pet page address → Import | pets/ in the data folder |
| A folder on this computer | Import → From a folder | Where it is; not copied |
| A ZIP file on this computer | Import → From a ZIP file | pets/ in the data folder |
One-click import from a link
- On a pet gallery, click an Open in PlayPets link. It looks like
playpets://import?url=<pet page address>. - If PlayPets is installed, it asks "Import this pet?" and shows which site the link comes from.
- Say yes. PlayPets imports the pet and opens Invite a friend.
If you run a gallery, add this link to your pet pages:
playpets://import?url=https%3A%2F%2Fpetdex.dev%2Fpets%2FbobaThe Import a pet window
Click Import at the top of Invite a friend. The Import a pet window has three ways to bring a pet in:
| Way | How |
|---|---|
| From an address | Paste the address of a pet page on a community site, or of a GitHub pet folder, into Pet page address and click Import |
| From a folder on this computer | Click From a folder and pick a pet folder |
| From a ZIP file on this computer | Click From a ZIP file and pick a pet ZIP, such as one from the creator kit |
- When the import finishes, the pet joins the yard as a friend right away, with the notice "Imported a new pet and invited it into the yard."
- Address imports fetch files over https only, and only from the pasted address's site (and its subdomains).
- If a page points at files on another site, the import doesn't follow it.
- If the address is wrong or the site doesn't respond, the window tells you why.
- You can't close the window while an import is in progress.
Supported sites
- Expand Find more pets, under the import buttons. It starts folded and lists the sites.
- Click a site to open it in your browser.
- Copy a pet page address into the field above.
| Site | Site address |
|---|---|
| OpenPets Registry | openpets.sh |
| Petdex | petdex.dev |
| Awesome Codex Pet | codexpet.top |
| Codex Pets | codex-pets.net |
- The sites above have dedicated import support.
- Places not on the list work too: a pet folder on GitHub (a folder containing
pet.json) and pet page addresses on sites built with codex-pet-share. - An entry marked (browse only) has no dedicated importer. You can still open it in your browser, and a compatible generic pet page may import when you paste its address. Listing a new site doesn't add import support by itself.
These are community links, and listing a site doesn't mean a partnership. The pets on them are made and shared by other people, not by PlayPets; to report one, use the site it came from.
A folder on your computer
A folder you pick with From a folder isn't copied into app storage. The app reads the pet right where it is, so it shows up in Invite a friend under Pets picked from this computer, with the folder name.
- Keep a folder you pick in a permanent location.
- A ZIP from the creator kit doesn't need extracting: import it as a ZIP file instead.
Move the folder and the friend waits
A friend recognizes its pet by the pet folder's path. If you move or delete the picked folder, or unplug its drive, that friend can't come into the yard the next time you open the app.
It isn't removed, though. It waits with its closeness kept, and a notice tells you how many friends are waiting. Put the folder back in the same place and the friend comes back.
A ZIP file since 1.4.0
A ZIP you pick with From a ZIP file is copied into the app, so you can move or delete the ZIP afterwards. It shows up in Invite a friend under Pets imported from an address or ZIP.
- A ZIP from the creator kit or a friend's
playpets-<name>.zipfrom the home page works, and so does a pet folder you compressed yourself. pet.jsonsits at the top of the ZIP or inside its one folder.- Importing the same ZIP again brings no second copy. A changed ZIP comes in as a new pet beside the old one.
Where pets are saved
A pet imported from an address or a ZIP is saved as one folder in pets/ in the data folder.
| Group in Invite a friend | Its folder |
|---|---|
| Pets imported from an address or ZIP | Open folder opens it right away |
| Codex pet folder | Open folder too |
| PlayPets starter pets | No button; they ship inside the app |
| Pets picked from this computer | No button; each card shows its folder name |
An imported pet's pet.json records where it came from, and its card shows the site, creator and license on one line, like "Petdex, creator, CC BY-NC 4.0". Community pets are their creators' work, so check the license before you use one.
Remove a pet since 1.4.0
A pet you brought in has a trash button beside its card in Invite a friend. The starter pets and the pets in Codex's pet folder have none.
| Pet | Removing it |
|---|---|
| Imported from an address or a ZIP | Deletes its folder in pets/. To use it again, import it again |
| Picked from this computer | Only takes it off the list; the folder stays where it is |
- While friends made from the pet are in the yard, it can't be removed. Send them away first.
- A friend waiting to come back (kept for later when the yard was full) also keeps the pet from being removed. PlayPets names that friend.
Make your own
A pet is one folder with a pet.json and one sprite sheet (PNG or WebP). It uses the same format as Codex pets, so a pet made for Codex works as it is. To make one with your AI tool, use the Character studio.
{
"id": "white",
"displayName": "White",
"kind": "animal",
"description": "A puppy.",
"spriteVersionNumber": 2,
"spritesheetPath": "spritesheet.webp"
}| Sheet | Size |
|---|---|
| Width | 1536px |
| Cell | 192×208px, 8 cells per row |
| v1 | 9 rows (1872px): rest, walk right, walk left, wave, jump, error, wait, work, done |
| v2 | 11 rows (2288px): two more rows of 16-direction gaze, so the pet follows the mouse with its eyes on the desktop |
descriptionbecomes a new friend's first personality.- Optional game poses for digging, planting, showing a find and fishing come in a file of their own. Without it, the pet plays its usual rows: Game poses in the developer docs.
- Each row's animation and the validation rules: Pet file format in the developer docs.
- When your folder is ready, invite it right away with Import → From a folder.