Cookie jars
Nouto saves the cookies that servers set with Set-Cookie headers and sends them with later requests to matching URLs. It keeps cookies in cookie jars. A jar is a named set of cookies, so you can keep one jar per session, for example an admin user and a guest user, and switch between them.
Open the cookie jars
Section titled “Open the cookie jars”Open the Environments panel and select the Cookie Jar tab. See Environments for how to open the panel.
In VS Code, you can also click Cookie Jars (the globe icon) in the API Testing view’s title bar, or run Nouto: Cookie Jars from the Command Palette. Both open the Environments panel on the Cookie Jar tab.
The tab lists your jars, with the cookie count of each. Nouto starts with one jar named Default. A check mark shows the active jar.

Create and switch jars
Section titled “Create and switch jars”Only one jar is active at a time, and it applies to every request.
- To create a jar, click New jar at the top of the jar list, type a name, and press
Enter. - To make a jar active, click it in the list. The right pane shows its cookies, grouped by domain.
- To rename or delete a jar, use the buttons on its row. You can’t delete the last jar.
You can also switch jars without opening the panel:
- In VS Code, click More actions (
...) next to Send in the request editor, and select the jar under Cookie jar. Manage Cookies in the same menu opens this panel. - In the desktop app, select the jar from the cookie jar selector in the top toolbar.
How Nouto sends and stores cookies
Section titled “How Nouto sends and stores cookies”Before Nouto sends an HTTP, GraphQL, WebSocket, SSE, or GraphQL subscription request, it adds a Cookie header with the active jar’s cookies that match the URL. A cookie matches when:
- Its domain equals the URL’s host, or the host is a subdomain of it. A cookie for
example.commatchesapi.example.com. - The URL’s path starts with the cookie’s path.
- It hasn’t expired.
- It isn’t marked
Secure, or the URL useshttps://.
If the request already has an enabled Cookie header, Nouto leaves it as it is and adds no cookies.
When an HTTP response contains Set-Cookie headers, Nouto saves those cookies to the active jar. A new cookie replaces an existing one with the same name, domain, and path. Nouto deletes cookies that have expired, so a server can remove a cookie by setting an expiry date in the past.
The CLI doesn’t use your cookie jars. Each nouto run starts with an empty jar that lasts for that run.
Edit cookies by hand
Section titled “Edit cookies by hand”To test a specific cookie value without signing in, add the cookie yourself:
- In the jar list, click the jar to make it active.
- Click Add cookie above the cookie list.
- Fill in Name and Domain, which are required, and any of Value, Path, Expires, HttpOnly, Secure, and SameSite.
- Click Add.
Each cookie row has Edit cookie and Delete cookie buttons. Each domain group has a button that deletes every cookie for that domain. Clear all cookies empties the jar.
Cookies tab in the response panel
Section titled “Cookies tab in the response panel”The response panel’s Cookies tab shows the cookies of the last request in two sections:
- Sent Cookies lists the cookies in the request’s
Cookieheader. - Response Cookies lists the cookies from the response’s
Set-Cookieheaders, with flags such as Session, HttpOnly, Secure, and Deleted, and their attributes.
Use a cookie value in a request
Section titled “Use a cookie value in a request”To put a cookie’s value in a header, URL, or body, use {{$cookie.name}}:
X-CSRF-Token: {{$cookie.csrfToken}}Nouto uses the first cookie with that name in the active jar, whatever its domain or path.
Read and change cookies in scripts
Section titled “Read and change cookies in scripts”Scripts can read, add, and delete cookies in the active jar with nt.cookies. See Cookie script API.
Back up cookie jars
Section titled “Back up cookie jars”Nouto backups can include your cookie jars. Cookies often hold session tokens, so store backup files somewhere safe. See Backup and restore.
