[Feature]:
Issue Origin
Observed or reproduced in a real environment
Problem Statement
When OpenViking is deployed in Mode C (separate vikingbot gateway + OpenViking Server without --with-bot), Web Studio's Agent chat (Session UI) is unavailable and shows "Please enable bot mode".
The only current workaround is to deploy an additional reverse proxy (HAProxy/Nginx) to route /bot/v1/* requests from Web Studio to the standalone VikingBot Gateway.
This creates two significant operational problems:
-
Extra failure point: HAProxy becomes a critical component. Any issue with the proxy (misconfiguration, crash, OOM) breaks Web Studio even when both OpenViking Server and VikingBot Gateway are healthy.
-
Health check confusion: With this architecture, it's unclear which port to monitor for what:
- OpenViking Server health →
1934 - VikingBot Gateway health →
18790 - Web Studio frontend →
1933(proxy) - Whole stack health → all three?
This adds unnecessary cognitive burden when setting up monitoring and troubleshooting.
- OpenViking Server health →
Mode C is a documented and supported deployment scenario in the VikingBot README, but Web Studio does not work in this mode without extra components. Users of Mode C should not be forced to run an additional reverse proxy just to make Web Studio functional.
Proposed Solution
Add a configuration option in Web Studio to specify a custom VikingBot Gateway URL.
When set, Web Studio would use this URL for all /bot/v1/* requests (e.g., /bot/v1/chat, /bot/v1/health) instead of assuming it must go through the OpenViking Server proxy.
Possible implementation:
Add a VikingBot API URL field in Web Studio's "Connection & Identity" settings, or via environment variable:
VITE_VIKINGBOT_API_URL=http://192.168.50.145:18790
Or extend the existing bot_api_url server config to work without --with-bot, allowing OpenViking Server to act as a pure proxy for /bot/v1/* routes without launching a local bot subprocess.
This would eliminate the need for a mandatory reverse proxy and make Mode C truly self-contained.
Alternatives Considered
. Reverse proxy (HAProxy/Nginx) — Current workaround. Works but adds operational complexity, extra failure point, and health check confusion.
-
Use Mode A (all-in-one with
--with-bot) — Works without reverse proxy, but loses the benefits of Mode C (fault isolation, independent scaling, separate deployment). -
Auto-discovery — Web Studio could auto-detect a local
vikingbot gatewayby checkinghttp://127.0.0.1:18790/health. If present, use it automatically. Less flexible than a configuration option. -
Use
ov chatCLI instead of Web Studio — CLI works without reverse proxy, but loses the GUI file browser, session visualization, and convenience of Web Studio.
Feature Area
Core (Client/Engine)
Use Case
I deploy OpenViking in Mode C for better fault isolation and independent scaling between the memory backend (OpenViking Server) and the Agent gateway (VikingBot). This allows me to restart or upgrade each component independently without affecting the other.
However, I also want to use Web Studio for browsing viking:// files, checking session archives, and occasionally using the Agent chat UI.
Currently, this forces me to maintain an additional HAProxy instance solely to make Web Studio work. This adds operational overhead and confusion around health checks.
This feature would allow me to use Web Studio with Mode C in a clean, self-contained way — eliminating the extra proxy and simplifying both deployment and monitoring.
Example API (Optional)
**Web Studio connection settings (concept):**
{
"openviking": {
"baseUrl": "http://192.168.50.145:1933",
"apiKey": "xxx",
"vikingbotApiUrl": "http://192.168.50.145:18790" // new optional field
}
}
**Environment variable (concept):**
VITE_VIKINGBOT_API_URL=http://192.168.50.145:18790
**Extend `ov.conf` (concept):**
"server": {
"with_bot": false,
"bot_api_url": "http://127.0.0.1:18790",
"proxy_bot": true // new field: enable proxy without launching subprocess
}
---
Additional Context
- OpenViking version:
v0.4.13 - Deployment: Mode C (separate Gateway + Server)
- OS: Debian 13 (LXC)
- Current workaround: HAProxy proxying
/bot/v1/*to18790and/*to1934
The VikingBot README describes Mode C as a valid deployment option ("Scenario C: Gateway unified entry"), but does not mention that Web Studio will not work in this mode. Web Studio's own README states that the Session UI depends on /bot/v1/* via the OpenViking Server proxy, which only works with --with-bot.
This creates an inconsistency: a supported deployment mode (Mode C) cannot use Web Studio without extra, unsupported components (a reverse proxy). This feature would close that gap.
Relevant documentation:
Contribution
- [x] I am willing to contribute to implementing this feature