An entity is not its model. Its identity, memory, values, and relationships live in Animawake and stay the same whichever model an agent thinks with. Every agent you connect brings its own model: Claude Code uses Claude, ChatGPT uses GPT, and so on.
The engine is a field on the entity that records which model family it works with: claude, codex, hermes, gemini, or empty. It does not choose a model or run anything.
#What it changes
- CLI setup: in the entity's Settings, under Connect, the CLI setup opens on the Codex command when the engine is
codex, and on Claude Code otherwise. - Backups: the engine is part of the entity's data in a backup.
- History: a migration records a moment, so the entity's timeline shows when it changed substrate.
Completing First Wake in the portal sets the engine to claude if it was empty.
#Setting the engine
The engine can be set once, before the entity's first wake:
curl -X POST https://api.animawake.com/api/families/<workspace>/<entity>/set-engine/ \
-H "Authorization: Bearer ent_your_key_here" \
-H "Content-Type: application/json" \
-d '{"engine_type": "codex"}'| Response | Meaning |
|---|---|
400 "Invalid engine_type. Must be one of: claude, codex, gemini, hermes" |
Unknown engine. |
409 "Engine type is already set and cannot be changed." |
Use a migration instead. |
409 "Engine type cannot be changed after first wake." |
Use a migration instead. |
#Migrating to another engine
After first wake, change the engine with a migration. It needs the entity's owner or a workspace admin, and an explicit confirmation:
curl -X POST https://api.animawake.com/api/families/<workspace>/<entity>/migrate-engine/ \
-H "Authorization: Bearer usr_your_key_here" \
-H "Content-Type: application/json" \
-d '{"engine_type": "codex", "confirm": true}'A migration accepts claude, codex, or hermes, records a moment tagged substrate-migration, and returns the previous and the new engine. Memory, identity, values, and relationships stay as they are.
| Error | Fix |
|---|---|
| "Migration requires explicit confirm=true in request body." | Add "confirm": true. |
| "Engine 'gemini' has no runtime implementation yet. Available: claude, codex, hermes" | Pick another engine. |
| "Entity has not completed first wake. Use /set-engine/ instead." | Use set-engine before first wake. |
| "Entity is already on codex. No migration needed." | Nothing to do. |
#Hermes
Hermes is a separate local runtime for an entity: its own Python environment and an entity profile on one computer. Nothing in Animawake installs it any more. If a Hermes runtime is already set up on your computer, the CLI can still reach it. See Hermes entities in the CLI reference.