Skip to content
New Kodine v2 is now available

Web

Kodine in the browser.

Kodine also runs as a web app in your browser — the same AI coding experience, no terminal required.

Kodine Web - New Session

Getting Started

Launch the web interface with:

Terminal window
kodine web

That spins up a local server bound to 127.0.0.1 on a random free port and opens Kodine in your default browser.


Configuration

The web server is configurable through command line flags or your config file.

Port

Kodine picks a free port by default; choose one yourself with:

Terminal window
kodine web --port 4096

Hostname

The server binds to 127.0.0.1 by default, meaning localhost only. Expose Kodine to your network with:

Terminal window
kodine web --hostname 0.0.0.0

With 0.0.0.0, Kodine prints both the local and network addresses:

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

mDNS Discovery

Turn on mDNS so other devices on the local network can discover your server:

Terminal window
kodine web --mdns

This sets the hostname to 0.0.0.0 for you and announces the server as kodine.local.

Give the mDNS domain a custom name when running several instances on one network:

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

CORS

Allow extra domains through CORS (handy for custom frontends):

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

Authentication

Lock access down with a password via the KODINE_SERVER_PASSWORD environment variable:

Terminal window
KODINE_SERVER_PASSWORD=secret kodine web

The username is kodine unless changed through KODINE_SERVER_USERNAME.


Using the Web Interface

After startup, the web interface gives you access to your Kodine sessions.

Sessions

The homepage is where you view and manage sessions — see what’s active, start something new.

Kodine Web - Active Session

Server Status

“See Servers” shows the connected servers and how they’re doing.

Kodine Web - See Servers


Attaching a Terminal

A terminal TUI can attach to an already-running web server:

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

That way the web interface and terminal run side by side on the same sessions and state.


Config File

Server settings can also live in your kodine.json config file:

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

Where both are set, command line flags win over config file values.