Skip to content

Web

Using ReignCode in your browser.

ReignCode can run as a web application in your browser, providing the same powerful AI coding experience without needing a terminal.

ReignCode Web - New Session

Getting Started

Start the web interface by running:

Terminal window
reigncode web

This starts a local server on 127.0.0.1 with a random available port and automatically opens ReignCode in your default browser.


Configuration

You can configure the web server using command line flags or in your config file.

Port

By default, ReignCode picks an available port. You can specify a port:

Terminal window
reigncode web --port 4096

Hostname

By default, the server binds to 127.0.0.1 (localhost only). To make ReignCode accessible on your network:

Terminal window
reigncode web --hostname 0.0.0.0

When using 0.0.0.0, ReignCode will display both local and network addresses:

Local access: http://localhost:4096
Network access: http://192.168.1.100:4096

mDNS Discovery

Enable mDNS to make your server discoverable on the local network:

Terminal window
reigncode web --mdns

This automatically sets the hostname to 0.0.0.0 and advertises the server as reigncode.local.

You can customize the mDNS domain name to run multiple instances on the same network:

Terminal window
reigncode web --mdns --mdns-domain myproject.local

CORS

To allow additional domains for CORS (useful for custom frontends):

Terminal window
reigncode web --cors https://example.com

Authentication

To protect access, set a password using the REIGNCODE_SERVER_PASSWORD environment variable:

Terminal window
REIGNCODE_SERVER_PASSWORD=secret reigncode web

The username defaults to reigncode but can be changed with REIGNCODE_SERVER_USERNAME.


Using the Web Interface

Once started, the web interface provides access to your ReignCode sessions.

Sessions

View and manage your sessions from the homepage. You can see active sessions and start new ones.

ReignCode Web - Active Session

Server Status

Click “See Servers” to view connected servers and their status.

ReignCode Web - See Servers


Attaching a Terminal

You can attach a terminal TUI to a running web server:

Terminal window
# Start the web server
reigncode web --port 4096
# In another terminal, attach the TUI
reigncode attach http://localhost:4096

This allows you to use both the web interface and terminal simultaneously, sharing the same sessions and state.


Config File

You can also configure server settings in your reigncode.json config file:

{
"server": {
"port": 4096,
"hostname": "0.0.0.0",
"mdns": true,
"cors": ["https://example.com"]
}
}

Command line flags take precedence over config file settings.