Skip to content
Projects

About

Self-hosted AI coding console — continue the same AI coding task across phone, desktop, and browser.

Developer Tools

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

rCodex logo

rCodex

Continue the same AI coding task from your phone, desktop, or browser.

简体中文 · English

License: AGPL-3.0 CI npm

Website · Quick start · Downloads · Release notes

rCodex is a self-hosted console for AI development. Install the Gateway on your computer or server, then start tasks, follow execution, respond to approvals, and resume conversations from your other devices.

By default, tasks run on the Gateway host using its project directories and toolchain. Remote runtimes use their own execution environments. Clients provide the interface; model requests go to the provider you configure.

Browser / desktop Console Mobile app
Console showing sessions, execution progress, and file changes Task progress, conversation, and model controls on a phone

Features

  • Continue across devices. Connect to the same Gateway from Android, iOS, Windows, macOS, or a browser to view, create, and resume sessions.
  • Follow execution. Stream responses, command output, file changes, and sub-agent activity. Provide additional input or interrupt a task when needed.
  • Choose your models and runtimes. Manage multiple providers and select available models, reasoning levels, Fast mode, and access permissions.
  • Keep your context. Manage Gateway connections and project workspaces, import existing Codex sessions, or use an everyday assistant without a project directory.
  • Handle approvals and extensions. Respond to permission requests and interactive prompts, manage MCP servers and skills, and complete supported authorization flows.
  • Schedule tasks and notifications. Create scheduled tasks, configure WeChat iLink notifications, or install the optional Feishu channel plugin.

Session actions, extensions, reasoning levels, and speed options depend on the selected provider and model. The interface exposes the capabilities available for that configuration.

Quick start

1. Install the Gateway

On a Windows, macOS, or Linux computer with Node.js 22 or later and npm, run these commands as your regular system user:

npm install -g @rcodex-lab/gateway
rcodex-gateway setup
rcodex-gateway service install
rcodex-gateway service start
rcodex-gateway service status

The Gateway package installs the Codex runtime. A separate global Codex CLI installation is unnecessary, but model requests still require a valid account login or provider credentials. Using the distributed clients does not require Flutter, the Android SDK, or a source build environment.

Linux and macOS users can also use the installation script in the deployment guide. Background services use a current-user scheduled task on Windows, a LaunchAgent on macOS, and user-level systemd on Linux.

2. Open the Console

In a browser on the Gateway host, open:

http://localhost:8787/console

setup generates a random administrator username, password, and access token, then prints the configuration file path. Sign in with the values of GATEWAY_AUTH_USERNAME and GATEWAY_AUTH_PASSWORD in that file.

Default configuration paths for new installations:

System Configuration file
Windows %LOCALAPPDATA%\rCodex\Gateway\gateway.env
macOS / Linux ~/.rcodex/gateway/gateway.env

Existing installations may retain an earlier location. Use the path shown by setup or rcodex-gateway config.

3. Configure a provider and start a session

  1. Open Provider in the Console, choose a runtime, and sign in or enter the service URL, models, and credentials.
  2. Create a development session, select a project directory on the Gateway host and a model, then send your task.
  3. Add the same Gateway address in a client on another device and sign in to continue working.

When connecting from a phone or another computer, use a reachable Gateway IP address or domain, such as https://gateway.example.com. localhost refers to the device you are currently using. Install any project dependencies and build tools on the Gateway host.

Downloads

Platform Download Details
Android APK arm64-v8a devices only
iOS IPA App Store / TestFlight distribution signature; cannot be installed directly by scanning a code or dragging it onto a phone
Windows Installer Windows 10 / 11, x64
macOS DMG Apple Silicon, arm64
Web Open /console on your Gateway No client installation required

The Electron desktop client connects to an existing Gateway. See the Windows guide and macOS guide for installation, signing, and platform verification status.

Models and runtimes

Provider Purpose
Codex Run tasks using a Codex account and runtime
OpenAI-compatible service Connect the Codex runtime to a compatible API with your own endpoint, models, and credentials
Claude Code Use Claude Code sessions and tool execution
Antigravity (agy) Connect Antigravity CLI over ACP with account authorization/switching, live quota, and interactive choice prompts
DevEco Code Connect DevEco Code over ACP with mid-turn steering, approval policies, and tool archiving
PI Agent Use an optional, separate agent runtime, installed on demand when its first session starts
DeepSeek Harness Connect a local command or a remote Harness service

Manage providers in the Console. Model availability, reasoning levels, and Fast mode depend on the runtime, capability configuration, and upstream service. See the Gateway documentation for details.

How it works

flowchart LR
  Mobile["Android / iOS App"] --> Gateway["rCodex Gateway"]
  Desktop["Windows / macOS Desktop"] --> Gateway
  Web["Browser Console"] --> Gateway
  Gateway --> Runtime["Agent runtime"]
  Runtime --> Workspace["Project files and local toolchain"]
  Runtime --> Models["Configured model service"]

The Gateway manages authentication, session state, history, approvals, and real-time messages. Clients connect over HTTP and WebSocket, while the selected agent runtime executes tasks.

Data and access

  • Your Gateway host stores session history and provider configuration. Model requests go to your configured services; hosting the Gateway yourself does not make inference fully offline.
  • The Gateway and the selected runtime control directory access and task permissions. GATEWAY_ALLOWED_PATHS defines workspace roots, and the selected permission mode determines approval behavior.
  • Use HTTPS or a controlled private network for remote connections, and protect your login credentials.
  • Optional Relay access is disabled by default. When enabled, all business HTTP and WebSocket traffic traversing Relay uses rcodex-e2ee-v1 end-to-end encryption by default (ECDH P-256 + ECDSA P-256 identity signatures + AES-256-GCM with Safety Number pinning and key-change blocking; Relay cannot read business payloads). Read the Relay guide before enabling it.
  • Anonymous usage statistics: Gateway and mobile clients report minimal version and platform metadata up to once per day by default (random anonymous installation ID, Gateway/app version, OS/platform/device model, Relay toggle state, and whether sessions were active in the past 24 hours). No source code, prompts, conversations, file paths, token payloads, or credentials are ever sent. Disable it anytime via GATEWAY_USAGE_REPORT=off or the toggle in Console and mobile settings.

Updates and management

If you installed the background service, wait for active tasks to finish, then run:

rcodex-gateway service update
rcodex-gateway service status

The update command updates the Gateway, refreshes its service definition, and restarts the service while preserving configuration and session data.

Command Purpose
rcodex-gateway config Inspect effective configuration and its source, with credentials hidden
rcodex-gateway service restart Restart after configuration changes
rcodex-gateway service stop Stop the background service
rcodex-gateway --version Show the installed Gateway version
rcodex-gateway start Run in the foreground; closing the terminal stops it

App downloads use the stable URLs above. App release notes and the Gateway upgrade guide are updated with each release.

Development

These commands are for developers with a source checkout. Start each command group at the repository root. To use rCodex, follow the quick start instead.

Gateway · Node.js / TypeScript

cd services/gateway
npm ci
npm run build
npm test

To run from source, use node dist/cli.js setup followed by node dist/cli.js start, then follow the configuration and login steps above. Make sure another Gateway instance is not already using the same port.

Mobile · Flutter

Use a Flutter SDK that supports Dart 3.12 and the development tools for your target platform.

cd apps/mobile
flutter pub get
flutter analyze
flutter test

For Android development, run flutter run --flavor dev. iOS development requires macOS, Xcode, and appropriate device signing configuration.

Desktop · Electron

cd apps/desktop
npm ci
npm run check
npm start

See the desktop documentation for development and build instructions.

Repository layout

apps/
  mobile/          Flutter Android / iOS app
  desktop/         Electron Windows / macOS client
services/
  gateway/         Gateway, Console, and agent integrations
  relay/           Optional remote access service (internal beta)
plugins/feishu/    Optional Feishu channel plugin
clients/esp32-board/  ESP32-P4 status display
deploy/version/   Version manifest and release notes
scripts/          Build, verification, and release tools
docs/deploy/      Deployment, client, and operations manuals

Documentation

Detailed guides are currently maintained in Chinese.

Guide Topics
Development guidelines Cross-platform engineering rules, performance bounds, and checks
Gateway deployment npm installation, configuration, background services, and updates
Gateway capabilities and configuration Model capabilities, extensions, and optional runtimes
Windows client Installation, connections, and troubleshooting
macOS client Installation, connections, and signing status
Relay access Beta scope and access boundaries
Feishu plugin Optional notification and assistant channel
ESP32 display Hardware pairing, task status, and alerts

Feedback and contributions

Issues, documentation improvements, and pull requests are welcome! Please read the Development Guidelines, Contributing Guide, and Code of Conduct before contributing.

  • For usage questions and bug reports, open an issue or use the contact menu on the website. Include your client platform, Gateway version, reproduction steps, and logs with credentials removed.
  • Do not report security vulnerabilities publicly. Follow SECURITY.md for private disclosure.
  • Keep changes focused on one issue and explain their purpose and validation. Update both READMEs when changing installation instructions, features, or platform support.

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only) — see LICENSE for the full text. If you modify this software and make it accessible to users over a network, you must make the corresponding source code of your modified version available under AGPL-3.0.

Third-party open-source components, bundled fonts (including the separate non-AGPL font license notice for Alibaba PuHuiTi 2.0 on mobile), and helper binaries are documented in THIRD_PARTY_NOTICES.md.

Community Links

Explore related projects

Loading…