> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Choose an org for each project | Agent guide

> Create and verify folder-scoped org bindings for separate Deepline projects.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/sdk-v2/multi-org.md)

Bind one working folder to one Deepline org. Verify the binding before
using customer inputs or starting provider work.

## 1. Create a dedicated folder

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
mkdir -p ~/deepline/workspaces/acme/input
mkdir -p ~/deepline/workspaces/acme/output
mkdir -p ~/deepline/workspaces/acme/plays
cd ~/deepline/workspaces/acme
```

Keep that org's files inside its folder. Create a separate folder when
you need another org.

## 2. Select an accessible org

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline org list --json
deepline org set "Acme" --auth-scope folder --json
```

Replace `Acme` with an accessible org returned by the list.
The CLI saves the folder binding. Do not construct `.env.deepline` manually.

## 3. Verify the effective binding

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline org status --json
deepline auth status --json
```

Check the reported org and credential source. Process environment
credentials take precedence over a folder binding. A parent's binding can also
be inherited when the current project has none. Resolve any mismatch before
provider work; setting a folder binding alone does not override an inherited key.

> [!TIP]
>
> The effective org matches the folder's purpose. Its reported folder binding
> points to the intended project, not another customer's directory.

## 4. Repeat in the next folder

Create a sibling folder for the next org. Run `org set` from inside it
with `--auth-scope folder`. Verify status there before running a Play.

Tell unattended agents to enter their assigned folder before calling Deepline.
Use [Unattended callers](https://deepline.com/docs/sdk-v2/production-integration.md#unattended-callers) for run identity and recovery.

## Fix a mismatch

Stop provider work while the effective org is wrong. Return to the
intended folder and set its binding again. Read the status output afterward.
If the CLI reports an ambiguous project folder, resolve that ambiguity first.

Do not delete a parent's binding without understanding which other projects
use it. Ask your agent to explain credential provenance from status output.
Use `deepline org --help` for the current scope contract.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.