Import & export cookies
Cookies hold the logged-in state for the sites you visit in a profile. Santiago lets you save a profile’s cookies to a JSON file and load cookies back in later — handy for moving a session between profiles, keeping a backup, or restoring a login without typing your password again.
What you can do
Section titled “What you can do”| Action | What it does |
|---|---|
| Export | Downloads all of the profile’s current cookies as a .json file you keep on your computer. |
| Import | Opens a file picker and adds the cookies from a JSON file into the profile. |
Export a profile’s cookies
Section titled “Export a profile’s cookies”Use export to save a snapshot of a profile’s session — for example before clearing it, or to copy a login into another profile.
- Launch the profile you want to export from.
- Choose Export cookies from the profile’s menu.
- Santiago downloads a
.jsonfile containing every cookie currently stored in that profile.
Keep the file somewhere safe. The JSON includes session tokens, so treat it like a password.
Import cookies from a file
Section titled “Import cookies from a file”Import lets you load cookies from a JSON file back into a profile.
- Launch the profile you want to import into.
- Choose Import cookies from the profile’s menu.
- Pick your
.jsonfile in the file picker. - Santiago reads the file and adds the cookies to the profile.
What import actually does
Section titled “What import actually does”- Import adds cookies — it inserts each cookie from the file into the profile, one by one.
- It does not clear the profile’s existing cookies first. New cookies are added on top of whatever is already there. If a cookie with the same name, domain, and path already exists, the imported value replaces it.
- The file must be a JSON array of cookies — the same shape you get from an export. Exporting from one profile and importing into another is the most reliable way to move a session.
Requirements and limits
Section titled “Requirements and limits”- The profile must be running. Both export and import act on the live browser session, so launch the profile before using either.
- Import needs an active subscription. Importing cookies is one of the actions gated by your plan, alongside launching and creating profiles. If your subscription has expired or you haven’t chosen a plan yet, import is unavailable until you’re on an active plan. See Plans & pricing and License states.
- Export works even when your subscription has expired — you can always pull your cookies back out, so you never lose access to your saved sessions.
Automate it (for agents and developers)
Section titled “Automate it (for agents and developers)”Everything above is also available through Santiago’s local API on http://localhost:7891, so agents and scripts can read and write a profile’s cookies without clicking through the app. This is the same API the agent skill uses.
Cookie endpoints live on the profile API and work while the profile is running:
# Export all cookies as JSONcurl -s localhost:7891/api/profiles/$PROFILE/cookies | jq .data
# Import cookies from JSON (adds them, does not clear first)curl -s localhost:7891/api/profiles/$PROFILE/cookies -X POST \ -H 'Content-Type: application/json' -d '[{...}, {...}]'
# Clear all cookiescurl -s localhost:7891/api/profiles/$PROFILE/cookies -X DELETE
# Clear by filter (any combo of name / domain / path) — exact matchcurl -s "localhost:7891/api/profiles/$PROFILE/cookies?domain=.example.com" -X DELETEEvery response uses the standard envelope: { "ok": true, "data": {...} } on success, or { "ok": false, "error": { "code", "message" } } on failure.
For the full automation surface — navigation, forms, screenshots, and the rest — see the HTTP API guide and the API reference.
Related pages
Section titled “Related pages”- Session sync — how Santiago saves and restores cookies and tabs automatically across launches and devices.
- Profiles overview — what a profile is and what it stores.
- Automation overview — drive profiles with the local API or the agent skill.