Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
docs: align self-host README + docs with SQLite-first default (#5774)
Marc Kelechavad06ee9c1b64b
diff --git a/README.md b/README.mdindex 72fe2505e..c175ab9f2 100644--- a/README.md+++ b/README.md@@ -65,6 +65,8 @@ If you'd like to try it out, navigate to [app.skyvern.com](https://app.skyvern.cChoose your preferred setup method:+> **Database default**: As of skyvern 1.0.31+, `skyvern run server` defaults to a SQLite database at `~/.skyvern/data.db` so it works out of the box with no Postgres setup. To use Postgres instead, set `DATABASE_STRING` in `.env` or pass `--database-string` to `skyvern quickstart`. Docker Compose always uses the bundled Postgres service.+### Option A: pip install (Recommended)Dependencies needed:@@ -89,17 +91,41 @@ skyvern quickstart### Option B: Docker Compose+Use this option if you want everything containerized (Postgres, API, UI) and don't want to install Python/Node locally.+1. Install [Docker Desktop](https://www.docker.com/products/docker-desktop/)2. Clone the repository:```bashgit clone https://github.com/skyvern-ai/skyvern.git && cd skyvern```-3. Run quickstart with Docker Compose:+3. Configure your LLM provider in `.env` (the `quickstart --docker-compose` command below will create it from `.env.example` if missing):+ ```bash+ cp .env.example .env # if not already created+ # edit .env to add your LLM API key+ ```+4. Start everything:```bash- pip install skyvern && skyvern quickstart+ docker compose up -d```- When prompted, choose "Docker Compose" for the full containerized setup.-4. Navigate to http://localhost:8080+5. Open http://localhost:8080++### Troubleshooting++**`(sqlite3.OperationalError) table organizations already exists`** — You hit a known bug in `pip install skyvern==1.0.31`. Fix:++```bash+rm ~/.skyvern/data.db # remove the leftover SQLite file+pip install --upgrade skyvern # 1.0.32+ contains the fix+skyvern quickstart+```++If you are still on 1.0.31 and cannot upgrade, install via uv instead:++```bash+uv pip install skyvern+```++**`pip install skyvern` fails with ResolutionImpossible (litellm / fastmcp)** — You hit a dependency-resolution conflict in 1.0.31. Either upgrade to 1.0.32+ or use uv: `uv pip install skyvern`.## SDKdiff --git a/docs/developers/self-hosted/docker.mdx b/docs/developers/self-hosted/docker.mdxindex d0c60e9f0..bcb28d3c2 100644--- a/docs/developers/self-hosted/docker.mdx+++ b/docs/developers/self-hosted/docker.mdx@@ -170,6 +170,22 @@ Docker Compose mounts several directories for persistent storage:The `.env` file controls the Skyvern server. Here are the most important variables grouped by purpose.+### Environment files++`docker-compose.yml` uses TWO sources for service environment:++1. **Inline `environment:` block** — compose-network values that depend on the docker network topology. Examples: `DATABASE_STRING=postgresql+psycopg://skyvern:skyvern@postgres:5432/skyvern` (the `postgres` hostname only resolves inside the compose network), `BROWSER_TYPE`, `ENABLE_CODE_BLOCK`.++2. **`env_file: .env`** — user secrets (LLM API keys, etc.).++**Do not move `DATABASE_STRING` from compose into `.env`.** The `.env.example` shipped with the repo uses a `localhost` host that points at the backend container itself when used inside compose — moving that value into `.env` will break the database connection.++If you have an existing `.env` from a pre-1.0.32 `skyvern quickstart` run, it may contain a leftover `DATABASE_STRING=postgresql+psycopg://skyvern@localhost/skyvern` line. Remove it:++```bash+sed -i.bak '/^DATABASE_STRING.*localhost/d' .env+```+### LLM ConfigurationConfigure at least one LLM provider. See [LLM Configuration](/developers/self-hosted/llm-configuration) for all providers.diff --git a/docs/developers/self-hosted/overview.mdx b/docs/developers/self-hosted/overview.mdxindex ebd0db90d..d5ed59e77 100644--- a/docs/developers/self-hosted/overview.mdx+++ b/docs/developers/self-hosted/overview.mdx@@ -84,7 +84,9 @@ Before deploying, ensure you have:</Step></Steps>-PostgreSQL 14+ is included in the Docker Compose setup. If you prefer an external database, you can configure `DATABASE_STRING` to point to your own instance.+PostgreSQL 14+ is included in the Docker Compose setup. If you prefer an external database, configure `DATABASE_STRING` to point to your own instance.++For the `pip install skyvern` path (Option A in the README), the default is a SQLite database at `~/.skyvern/data.db` — zero-config for local dev. To opt into Postgres for the pip path, run `skyvern quickstart --database-string=postgresql+psycopg://user:pass@host:5432/dbname`.## Choose your deployment method