
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@okcode/monorepo
Advanced tools
A minimal web GUI for coding agents. Currently supports Codex and Claude, with more providers coming.
A minimal web GUI for coding agents. Currently supports Codex and Claude, with more providers coming.
npx okcodes
This starts the OK Code server and opens your browser. The app automatically detects which providers you have installed.
Or install the desktop app from the Releases page.
OK Code supports multiple AI providers. You need at least one configured to start coding.
npm install -g @openai/codexcodex logincodex login statusIf using a custom model provider (Azure OpenAI, Portkey, etc.), configure model_provider in ~/.codex/config.toml instead — no codex login needed.
npm install -g @anthropic-ai/claude-codeclaude auth loginclaude auth status[!TIP] You can install both providers and switch between them per session.
Run the built-in diagnostic to check your setup:
npx okcodes doctor
If OK Code shows a provider error banner after launch:
| Banner message | Fix |
|---|---|
| "not installed or not on PATH" | Install the CLI (see above), then restart OK Code |
| "not authenticated" | Run the login command for that provider |
| "version check failed" | Update the CLI to the latest version |
[!NOTE] OK Code launches even without providers configured — you can explore the UI and configure provider binary paths from Settings before starting a session.
Prerequisites: Bun >= 1.3.9, Node.js >= 24.13.1
bun install
bun dev # start server + web in parallel
This runs the contracts build, then starts the server (port 3773) and web app (port 5733) together via Turbo.
Other dev commands:
bun dev:server # server only
bun dev:web # web only
bun dev:desktop # Electron desktop + web
bun dev:marketing # Astro marketing site
Quality checks:
bun fmt # format (oxfmt)
bun lint # lint (oxlint)
bun typecheck # type-check all packages
bun run test # run tests (Vitest)
OK Code is a monorepo with four apps and two shared packages, orchestrated by Turbo.
┌─────────────────────────────────┐
│ Browser (React + Vite) │
│ wsTransport (state machine) │
│ Typed push decode at boundary │
└──────────┬──────────────────────┘
│ ws://localhost:3773
┌──────────▼──────────────────────┐
│ apps/server (Node.js) │
│ WebSocket + HTTP static server │
│ OrchestrationEngine │
│ ProviderService │
└──────────┬──────────────────────┘
│ JSON-RPC over stdio
┌──────────▼──────────────────────┐
│ codex app-server │
└─────────────────────────────────┘
The server spawns codex app-server as a child process, communicating over JSON-RPC on stdio. Provider runtime events are normalized into orchestration domain events and pushed to the browser over WebSocket.
| Package | Path | Role |
|---|---|---|
okcodes | apps/server | Node.js CLI and WebSocket server. Wraps Codex app-server, serves the React web app, and manages provider sessions. |
@okcode/web | apps/web | React 19 + Vite SPA. Session UX, conversation rendering, and client-side state via Zustand. Connects to the server over WebSocket. |
@okcode/desktop | apps/desktop | Electron shell that bundles the server and web app into a native desktop application with auto-updates. |
@okcode/marketing | apps/marketing | Astro marketing site. |
@okcode/contracts | packages/contracts | Shared Effect schemas and TypeScript contracts for the WebSocket protocol, provider events, orchestration model, and session types. Schema-only — no runtime logic. |
@okcode/shared | packages/shared | Shared runtime utilities (git, logging, shell, networking). Uses explicit subpath exports (@okcode/shared/git, etc.) — no barrel index. |
ws), node-pty@okcode/contracts)ProviderService, which talks to codex app-server over JSON-RPC.orchestration.domainEvent channel).For the full architecture with sequence diagrams, see .docs/architecture.md.
Read CONTRIBUTING.md before opening an issue or PR.
Join the Discord.
FAQs
A minimal web GUI for coding agents. Currently supports Codex and Claude, with more providers coming.
We found that @okcode/monorepo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.