diff options
Diffstat (limited to 'packages/web/src/content/docs/server.mdx')
| -rw-r--r-- | packages/web/src/content/docs/server.mdx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/server.mdx b/packages/web/src/content/docs/server.mdx index a61d7bae1..a123acb15 100644 --- a/packages/web/src/content/docs/server.mdx +++ b/packages/web/src/content/docs/server.mdx @@ -33,6 +33,16 @@ opencode serve --cors http://localhost:5173 --cors https://app.example.com --- +### Authentication + +Set `OPENCODE_PASSWORD` to protect the server with HTTP basic auth. The username is always `opencode`, and the password is the value of `OPENCODE_PASSWORD`. This applies to both `opencode serve` and `opencode web`. + +```bash +OPENCODE_PASSWORD=your-password opencode serve +``` + +--- + ### How it works When you run `opencode` it starts a TUI and a server. Where the TUI is the |
