Hector Studio¶
Hector Studio is the web-based UI for Hector. It provides a visual interface for designing, configuring, and testing AI agents.
Studio is embedded in Hector. Run
hector serveand open http://localhost:8080/.

Features¶
1. Visual Flow Builder¶
Design complex multi-agent architectures using a drag-and-drop canvas.
- Bi-directional Sync: Changes in the UI are stored via the Admin API and persist across restarts. Edits to the YAML config file are reflected when using
--watch(live-sync) or--syncon restart (force overwrite). - Agent Types: Drag and drop Sequential, Parallel, and Loop nodes.
2. Resource Management¶
Configure shared resources without touching YAML.
- LLMs: Add and test providers (OpenAI, Anthropic, Ollama).
- Tools: Search the MCP registry and install tools with one click.
- Guardrails: Toggle safety policies on/off.
3. Integrated Chat¶
Test your agents in the browser.
- Streaming: Watch tokens arrive in real-time.
- Trace View: See exactly which tools were called and what data was passed.
- Markdown Support: Full rendering of tables, code blocks, and images.
Embedded in Hector (Recommended)¶
Release builds of Hector include Studio bundled directly in the binary:
hector serve
Open http://localhost:8080/ in your browser. Studio automatically detects it's running in embedded mode and connects to the host server. No manual configuration needed.
Note
Development builds (plain go build) don't embed UI assets.
You'll see a fallback page at / with instructions on how to set it up.
Build with Embedded UI¶
To build Hector with Studio embedded:
make build-release
This requires Node.js (for npm). It builds Studio from the studio/ directory, copies the assets into ui/dist/, and produces a single hector executable with the UI embedded via Go's //go:embed.
Build Pipeline
The monorepo build pipeline:
studio/: React + Vite app, built withnpm run build→studio/dist/ui/dist/: Staging directory, assets copied here by the Makefileui/embed.go: Uses//go:embed all:distto bake assets into the Go binary- At runtime,
ui.Handler()serves embedded assets or shows a fallback page
Development Mode¶
Run Studio's dev server with hot-reload for UI development:
cd studio
npm install
npm run dev
Open http://localhost:5173, then add your Hector server URL to connect.
Connecting to Servers¶
Studio can connect to any Hector server, local or remote.
- Click the Server Selector (top-left).
- Click Add Server.
- Enter the server URL (e.g.,
http://localhost:8080orhttps://agents.acme.com). - Authenticate if the server requires it.
Chat, configuration, and observability features all work against any connected server.
Cloud Integration (Optional)¶
When cloud features are enabled, Studio can provision and manage cloud-hosted Hector instances:
- Click the Server Selector.
- Select Hector Cloud.
- Enter your license key (obtained from the cloud signup page).
- Studio provisions a managed instance and connects automatically.
Cloud features are only available when the VITE_HECTOR_CLOUD_URL environment variable is set at build time. See the Studio README for configuration details.
Troubleshooting¶
UI shows a fallback page at /
This means the binary was built from source without embedded UI assets. Options:
- Install a release binary:
curl -fsSL https://gohector.dev/install.sh | sh - Or with Homebrew:
brew install verikod/tap/hector - Run
make build-releaseto build a binary with UI embedded (requires Node.js) - Run Studio dev server with
npm run devin thestudio/directory
Studio can't connect to the server
When using the dev server (port 5173), add your server URL via Server Selector → Add Server. Ensure the Hector server is running and accessible from your browser.
Assets look broken or outdated
Hard-refresh the browser (Cmd+Shift+R / Ctrl+Shift+R) to clear cached assets.