PraisonAI Code UI (ui code)
Launch a multi-agent coding workspace in your browser with one command.
Open a browser workspace where agents plan, edit and run code across one or more repos.
pip install praisonai aiui-code
praisonai ui codeThis opens http://127.0.0.1:8766. If you pass no -w, aiui-code uses the current directory as the workspace.
graph LR
A[👤 You] --> B[praisonai ui code]
B --> C[🧩 aiui-code plugin]
C --> D[🤖 Multi-agent workspace<br/>plan · edit · run]
classDef user fill:#8B0000,stroke:#7C90A0,color:#fff
classDef cli fill:#6366F1,stroke:#7C90A0,color:#fff
classDef plugin fill:#189AB4,stroke:#7C90A0,color:#fff
classDef result fill:#10B981,stroke:#7C90A0,color:#fff
class A user
class B cli
class C plugin
class D resultQuick Start
- Install
bash pip install praisonai aiui-code - Launch
bash praisonai ui codeOpen
http://127.0.0.1:8766. - Launch with options
bash praisonai ui code -w ./my-repo --require-auth --enable-terminal
How It Works
sequenceDiagram
participant User
participant CLI as praisonai CLI
participant Server as aiui-code server
participant UI as Browser
User->>CLI: praisonai ui code
CLI->>CLI: Is aiui_code installed?
alt Not installed
CLI-->>User: ERROR + "pip install aiui-code" (exit 1)
else Installed
CLI->>Server: python -m praisonaiui.cli code serve --host --port ...
Server-->>UI: Workspace on :8766
User->>CLI: Ctrl+C / SIGTERM
CLI->>Server: Stop server
endpraisonai ui code is a thin launcher. It checks for aiui_code with importlib.util.find_spec, so nothing loads until you run the command. It then hands every flag to aiui code serve and stops the server cleanly on Ctrl+C or SIGTERM.
Options
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--workspace | -w | Path (repeatable) | current directory | Workspace folder(s) to open. Pass it more than once to open several repos side-by-side. |
--port | -p | int | 8766 | Port to run the Code Web UI on. |
--host | str | 127.0.0.1 | Host interface to bind the server to. | |
--require-auth | flag | False | Require bearer-token authentication for all requests. | |
--enable-terminal | flag | False | Enable the opt-in interactive PTY WebSocket terminal. |
Common Patterns
Single workspace
cd ~/code/my-app
praisonai ui codeMultiple workspaces
praisonai ui code -w ~/code/repo-a -w ~/code/repo-b --port 9000Shared on the network
praisonai ui code --host 0.0.0.0 --require-authInteractive terminal
praisonai ui code --require-auth --enable-terminalExample Session
- Run
praisonai ui code -w ~/code/api -w ~/code/web. - Open
http://127.0.0.1:8766. Both repos appear as workspaces. - Ask: “Rename
get_usertofetch_userin the API and update every caller in the web app.” - The agents plan the change, edit files in both workspaces, and show the result for review.
- Press
Ctrl+Cin the terminal to stop. The CLI prints🤖 PraisonAI Code Web UI stopped.
Which Command Should I Use?
graph TD
A[What do you need?] --> B{Coding across<br/>one or more repos?}
B -->|Yes| C[praisonai ui code<br/>:8766]
B -->|No| D{Chat with one<br/>codebase, Chainlit?}
D -->|Yes| E[praisonai code]
D -->|No| F[praisonai ui<br/>:8081]
classDef q fill:#F59E0B,stroke:#7C90A0,color:#fff
classDef start fill:#8B0000,stroke:#7C90A0,color:#fff
classDef ans fill:#10B981,stroke:#7C90A0,color:#fff
class A start
class B,D q
class C,E,F anspraisonai code | praisonai ui code | |
|---|---|---|
| Install | pip install "praisonai[code]" | pip install praisonai aiui-code |
| Backend | Chainlit app | aiui-code plugin (aiui code serve) |
| Default port | Chainlit default | 8766 |
| Focus | Chat with a codebase | Multi-agent plan + edit + run |
| Workspaces | One (PRAISONAI_CODE_REPO_PATH) | Many (repeatable -w) |
| Auth | Chainlit login | Opt-in bearer token (--require-auth) |
| Terminal | — | Opt-in PTY (--enable-terminal) |