server¶
Run the local Openbase API and WebSocket server.
Usage¶
Options¶
| Option | Default | Description |
|---|---|---|
--host TEXT |
127.0.0.1 |
Bind host |
--port INTEGER |
7999 |
Bind port |
--workers INTEGER |
1 |
Gunicorn worker count |
--reload |
false |
Enable auto-reload |
--skip-migrations |
false |
Skip Django migrations |
--skip-collectstatic |
false |
Skip static collection |
Startup Sequence¶
By default server does the following:
- Sets Django environment.
- Creates data directory (
~/.openbaseby default). - Runs migrations.
- Runs
collectstaticinto~/.openbase/staticfiles. - Builds the console bundle.
- Starts Gunicorn with Uvicorn workers.
Example¶
Related Endpoints¶
- REST API:
http://<host>:<port>/api/... - MCP routes:
http://<host>:<port>/mcp/... - WebSockets:
ws://<host>:<port>/ws/threads/... - Console SPA:
http://<host>:<port>/
MCP Tools¶
The CLI-owned MCP server exposes tools for copying threads between the normal
Codex home at ~/.codex and the Openbase voice Codex home at
~/.openbase/codex_home:
list_normal_codex_threadsimport_normal_codex_threadslist_voice_codex_threadsexport_voice_codex_threads
Transfers copy session JSONL files and preserve the Codex thread index/state metadata needed by the target app-server to list, read, and resume transferred threads. Source Codex files are copied, not moved.