|
| 1 | +--- |
| 2 | +title: Configure Workspace Lite |
| 3 | +sidebar_position: 3 |
| 4 | +description: Configure OpenBB Workspace Lite with container environment variables. |
| 5 | +keywords: |
| 6 | + - OpenBB Workspace Lite configuration |
| 7 | + - Workspace Lite environment variables |
| 8 | + - Workspace Lite Marketplace |
| 9 | + - Workspace Lite MCP |
| 10 | +--- |
| 11 | + |
| 12 | +import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; |
| 13 | + |
| 14 | +<HeadTitle title="Configure Workspace Lite | OpenBB Workspace Docs" /> |
| 15 | + |
| 16 | +# Configure Workspace Lite |
| 17 | + |
| 18 | +OpenBB Workspace Lite configuration is passed to the container with environment variables. Apply configuration changes by recreating the container with the same `/data` mount and the updated variables. |
| 19 | + |
| 20 | +## Public URL |
| 21 | + |
| 22 | +When Workspace Lite runs behind a reverse proxy or DNS name, set the public URLs used by Workspace: |
| 23 | + |
| 24 | +```bash |
| 25 | +docker run -d \ |
| 26 | + -p 3000:3000 \ |
| 27 | + -v openbb-data:/data \ |
| 28 | + -e FRONTENDURL=https://workspace.example.com \ |
| 29 | + -e PROURL=https://workspace.example.com \ |
| 30 | + -e SELFURL=https://workspace.example.com/api \ |
| 31 | + --name openbb \ |
| 32 | + lite.openbb.co/openbb-lite:<version> |
| 33 | +``` |
| 34 | + |
| 35 | +Use HTTPS for shared deployments. |
| 36 | + |
| 37 | +## Host Port |
| 38 | + |
| 39 | +If port `3000` is already in use on the host, map a different host port to the container port: |
| 40 | + |
| 41 | +```bash |
| 42 | +docker run -d \ |
| 43 | + -p 8080:3000 \ |
| 44 | + -v openbb-data:/data \ |
| 45 | + --name openbb \ |
| 46 | + lite.openbb.co/openbb-lite:<version> |
| 47 | +``` |
| 48 | + |
| 49 | +Open Workspace Lite at `http://localhost:8080`. |
| 50 | + |
| 51 | +## Initial Admin Account |
| 52 | + |
| 53 | +The first start generates an admin account and prints the credentials to the container logs. Set the initial admin email and password yourself by passing these variables on the first run: |
| 54 | + |
| 55 | +```bash |
| 56 | +docker run -d \ |
| 57 | + -p 3000:3000 \ |
| 58 | + -v openbb-data:/data \ |
| 59 | + -e OPENBB_ADMIN_EMAIL=admin@example.com \ |
| 60 | + -e OPENBB_ADMIN_PASSWORD='replace-with-a-strong-password' \ |
| 61 | + --name openbb \ |
| 62 | + lite.openbb.co/openbb-lite:<version> |
| 63 | +``` |
| 64 | + |
| 65 | +Set these values before the first start of a new `/data` volume. |
| 66 | + |
| 67 | +## Apps Marketplace |
| 68 | + |
| 69 | +The Apps Marketplace tab is available in Workspace Lite. Marketplace browsing requires outbound access to OpenBB's marketplace service. |
| 70 | + |
| 71 | +Hide the Marketplace tab by starting the container with `UI_SHOW_MARKETPLACE=false`: |
| 72 | + |
| 73 | +```bash |
| 74 | +docker run -d \ |
| 75 | + -p 3000:3000 \ |
| 76 | + -v openbb-data:/data \ |
| 77 | + -e UI_SHOW_MARKETPLACE=false \ |
| 78 | + --name openbb \ |
| 79 | + lite.openbb.co/openbb-lite:<version> |
| 80 | +``` |
| 81 | + |
| 82 | +## Workspace MCP |
| 83 | + |
| 84 | +Workspace Lite comes with the MCP companion enabled. See the [Workspace MCP overview](/agents/workspace-mcp-overview) for the user-facing MCP workflow. |
| 85 | + |
| 86 | +Hide the MCP companion by starting the container with `UI_SHOW_COMPANION_MCP_MODE=false`: |
| 87 | + |
| 88 | +```bash |
| 89 | +docker run -d \ |
| 90 | + -p 3000:3000 \ |
| 91 | + -v openbb-data:/data \ |
| 92 | + -e UI_SHOW_COMPANION_MCP_MODE=false \ |
| 93 | + --name openbb \ |
| 94 | + lite.openbb.co/openbb-lite:<version> |
| 95 | +``` |
| 96 | + |
| 97 | +Disable the default MCP server for new users with `MCP_DEFAULT_SERVER_ENABLED=false`: |
| 98 | + |
| 99 | +```bash |
| 100 | +docker run -d \ |
| 101 | + -p 3000:3000 \ |
| 102 | + -v openbb-data:/data \ |
| 103 | + -e MCP_DEFAULT_SERVER_ENABLED=false \ |
| 104 | + --name openbb \ |
| 105 | + lite.openbb.co/openbb-lite:<version> |
| 106 | +``` |
| 107 | + |
| 108 | +If Workspace Lite runs behind a reverse proxy, allow long-lived HTTP responses and WebSocket upgrades for `/api/pro/workspace-mcp`. |
| 109 | + |
| 110 | +## Other Controls |
| 111 | + |
| 112 | +| Variable | Default | Purpose | |
| 113 | +| --- | --- | --- | |
| 114 | +| `PORT` | `3000` | Container listen port | |
| 115 | +| `BACKEND_URL` | `/api` | Frontend API base URL | |
| 116 | +| `FRONTENDURL` | `http://localhost:3000` | Public Workspace URL | |
| 117 | +| `SELFURL` | `http://localhost:3000/api` | Public API URL | |
| 118 | +| `PROURL` | `http://localhost:3000` | Workspace public URL | |
| 119 | +| `AI_COPILOT_ENABLED` | `true` | Show Copilot UI | |
| 120 | +| `AI_COPILOT_AI_ENHANCEMENTS` | `true` | Enable AI enhancement UI | |
| 121 | +| `DATA_ALLOW_HTML_JS_EXECUTION` | `true` | Allow HTML widgets to execute JavaScript | |
0 commit comments