Skip to content

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

FromUseKept in
An Open in PlayPets link on a galleryClick it and say yespets/ in the data folder
A pet page address or a GitHub pet folderImport → Pet page address → Importpets/ in the data folder
A folder on this computerImport → From a folderWhere it is; not copied
A ZIP file on this computerImport → From a ZIP filepets/ in the data folder
  1. On a pet gallery, click an Open in PlayPets link. It looks like playpets://import?url=<pet page address>.
  2. If PlayPets is installed, it asks "Import this pet?" and shows which site the link comes from.
  3. Say yes. PlayPets imports the pet and opens Invite a friend.

If you run a gallery, add this link to your pet pages:

text
playpets://import?url=https%3A%2F%2Fpetdex.dev%2Fpets%2Fboba

The 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:

WayHow
From an addressPaste 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 computerClick From a folder and pick a pet folder
From a ZIP file on this computerClick 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 ​

  1. Expand Find more pets, under the import buttons. It starts folded and lists the sites.
  2. Click a site to open it in your browser.
  3. Copy a pet page address into the field above.
SiteSite address
OpenPets Registryopenpets.sh
Petdexpetdex.dev
Awesome Codex Petcodexpet.top
Codex Petscodex-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>.zip from the home page works, and so does a pet folder you compressed yourself.
  • pet.json sits 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 friendIts folder
Pets imported from an address or ZIPOpen folder opens it right away
Codex pet folderOpen folder too
PlayPets starter petsNo button; they ship inside the app
Pets picked from this computerNo 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.

PetRemoving it
Imported from an address or a ZIPDeletes its folder in pets/. To use it again, import it again
Picked from this computerOnly 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.

json
{
  "id": "white",
  "displayName": "White",
  "kind": "animal",
  "description": "A puppy.",
  "spriteVersionNumber": 2,
  "spritesheetPath": "spritesheet.webp"
}
SheetSize
Width1536px
Cell192×208px, 8 cells per row
v19 rows (1872px): rest, walk right, walk left, wave, jump, error, wait, work, done
v211 rows (2288px): two more rows of 16-direction gaze, so the pet follows the mouse with its eyes on the desktop
  • description becomes 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.

Free and open source under the MIT license. Not affiliated with OpenAI; ChatGPT and Codex are trademarks of OpenAI.