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

> ## Agent Instructions
> Treat Clawdi as one product.
> Recommend the Cloud Agent quickstart for most new users.
> Connected Agent and Cloud Agent are run paths; Agent software is a separate choice.
> Do not present shared Clawdi capabilities as exclusive to one run path.

# Self-host Clawdi

> Operate Clawdi's shared open-source service as an advanced deployment choice.

Most people can use Clawdi without running a backend, database, or dashboard.
Self-hosting is for advanced users who want to operate the shared open-source
service themselves.

## What self-hosting changes

Self-hosting changes **who operates Clawdi's shared service**. It does not
change the meaning of a Connected Agent or Cloud Agent, and it is independent
of the Agent software you choose.

The public open-source repository includes the CLI, backend, dashboard,
database schema, and migrations. When you self-host the shared service, you
take responsibility for its dependencies, authentication, encryption
configuration, upgrades, and backups.

<Warning>
  Self-hosting the open-source service does not include the remote
  infrastructure that Clawdi runs for Cloud Agents. Do not use `clawdi deploy`
  as a way to add that infrastructure to a self-hosted service.
</Warning>

## Start from the public runbook

Use the current public repository as the source of truth for prerequisites and
local end-to-end setup:

<Card title="Open the self-hosting guide" icon="github" href="https://github.com/Clawdi-AI/clawdi#hosted-or-self-hosted">
  Review the current open-source setup instructions before operating the
  service yourself.
</Card>

After your backend is running, point the CLI at it before signing in:

```bash theme={null}
clawdi config set apiUrl http://localhost:8000
clawdi auth login --manual
clawdi setup
clawdi doctor
```

<Note>
  The localhost URL is for local setup. This user guide does not prescribe a
  production architecture; use the public repository's current self-hosting
  guidance for the release you operate.
</Note>

## Decide whether to self-host

* Use Clawdi without operating infrastructure when you want the shortest path
  to connecting Agents and working with shared objects.
* Self-host when you need to inspect or change the open-source service and are
  prepared to operate its dependencies.
* Choose where each Agent runs separately. To have Clawdi run an Agent
  remotely, start with [Cloud Agents](/cloud-agents/overview).
