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

# Devin SDK environments and base URLs

> Point the Devin SDK at a Devin deployment other than production by setting the base URL for the API and the WebSocket.

Everything defaults to production (`https://api.devin.ai`). To target another Devin
deployment, pass `baseUrl` to `createDevin` or set `DEVIN_BASE_URL` — the REST client and the
ACP WebSocket both derive from it. Your API key has to come from the same deployment you point
at.

```ts theme={null}
await using devin = await createDevin({ baseUrl: "https://api.devin.ai" });
```

> [accordion] Local (LocalDevin)
>
> The spawned CLI inherits your environment; deployments are selected with the CLI's own
> environment variables.

> [accordion] Harness (@cognition-ai/harness-devin)
>
> Pass `createDevin({baseUrl})`; the adapter forwards the deployment selection to the CLI in the
> sandbox.


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