> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/core-concepts/context.md).

# Context

## What is a Stoobly Context?

A context is collection of [requests](/core-concepts/mock-api/requests.md) and [scenarios](/core-concepts/mock-api/scenarios.md).

### Default Context

The default context is automatically generated and set when you run `stoobly-agent` for the first time. Contexts are maintained by the hidden directories named `.stoobly` . For supported OSs the default context's data will be in the user's home directory e.g. `~` or `$HOME` for unix systems.

## Why have different Contexts?

### Separation of APIs

A context contains [scenarios](/core-concepts/mock-api/scenarios.md) which are used to group requests for a user workflow. As more scenarios are created, they may become more and more loosely related. To differentiate the scenarios of various APIs, it is recommended to consider separating them with a new context. Recommended separation strategies:

* One context per API service
* One context per application

### Collaboration

Sharing contexts can be useful to show collaborators all the data for an API instead of manually exporting specific requests and scenarios and having them import each one. Instead you can share the entire context and quickly onboard teammates.
