Open Source · Local-First

Your coding agents,
your infrastructure

The web UI that makes Claude Code and Codex easier to manage. Organize projects, archive threads, drag-and-drop everything — without leaving the browser.

Get Started Star on GitHub
CodeForge
You
Add JWT authentication middleware to the Express server. It should validate tokens on all /api routes and attach the decoded user to req.user.
Claude Sonnet
Analyzing project structure and existing middleware...
I'll create the auth middleware and wire it into your Express app. Here's the implementation:
src/middleware/auth.ts +42 lines
import { Request, Response, NextFunction } from "express";
import jwt from "jsonwebtoken";

interface AuthPayload {
  userId: string;
  email: string;
  role: "admin" | "user";
}

export const authenticate = (
  req: Request,
  res: Response,
  next: NextFunction
) => {
  const token = req.headers.authorization
    ?.replace("Bearer ", "");

  if (!token) return res
    .status(401).json({ error: "Missing token" });

  try {
    const decoded = jwt.verify(
      token, process.env.JWT_SECRET!
    ) as AuthPayload;
    req.user = decoded;
    next();
  } catch {
    res.status(403).json({ error: "Invalid token" });
  }
};
Created src/middleware/auth.ts
Ask anything, @tag files, or /commands...
Claude Sonnet Chat Full access Pins 2
42k
Pins 2 pinned
Assistant
The middleware validates JWT tokens on all /api routes and attaches the decoded payload to req.user. Make sure to set JWT_SECRET in your environment.
You Selection
validate tokens on all /api routes and attach the decoded user to req.user

Up and running in three steps

CodeForge sits between your team and the AI provider APIs. You control the infrastructure.

01

Install CodeForge

One command to get started. Or download the desktop app for macOS, Linux, and Windows.

npx codeforge-chat
02

Connect your providers

Log in to your existing OpenAI or Anthropic account through the CLI. CodeForge uses your local credentials — keys never leave your machine.

03

Open your browser and code

Navigate to your server's URL, start a session, pick a model, and begin pair-programming with an AI agent. Share the URL with your team.

Skill Manager

Reusable skills for every project

Organize slash commands and custom skills. Project-scoped or global — invoke them from any thread.

Skill Manager
Built-in
/model
/plan
/clear
/context
Project Skills
/review-pr
/deploy
New project skill
User Skills
/commit-msg
New user skill
/review-pr Project skill
# PR Review Skill Review the current git diff against the base branch. ## Instructions 1. Run `git diff main...HEAD` to see all changes 2. Check for: - Breaking API changes - Missing error handling - Test coverage gaps - Security concerns (hardcoded secrets, SQL injection) 3. Summarize findings as a checklist 4. Suggest specific improvements with code examples ## Output format Use markdown with ✅ for passing checks and ⚠️ for issues.

How CodeForge compares

CodeForge T3 Code Claude Code CLI Cursor
Skills management Full CRUD No No Rules files
Full-text thread search FTS with ranking No No Basic
Thread archiving Yes No No No
Pin messages Sidebar panel No No No
Inline file diffs In chat No Yes Yes
Browser-based Any device Yes Terminal Desktop app
Open source Yes Yes Yes No
No per-seat license Yes Yes Yes No

What the CLI doesn't give you

Claude Code and Codex are powerful in the terminal. CodeForge adds the workspace layer on top — project organization, visual history, and the management tools you need as usage grows.

Diff Viewer & Integrated Terminal

See file changes as inline diffs right in the conversation. Open terminals alongside your chat — no context-switching between windows.

Skills Management

Organize reusable AI skills into a library your agents can invoke on demand. Extend what your coding agents can do without switching tools.

Project & Thread Management

All your projects in one sidebar. Drag-and-drop to reorder, archive threads you're done with, multi-select for batch ops, and pin important messages. No more terminal tab chaos.

Custom Quick Actions

Define project-specific shortcuts that trigger common workflows with one click. Run tests, deploy, lint — whatever your project needs, without retyping prompts.

Commit, Push & PR in One Flow

Stage files selectively, commit with a message, push, and open a pull request — all without leaving the chat. The full git workflow, streamlined.

Private by Default

No telemetry, no analytics, no phone-home. Runs entirely on your machine. Your data flows directly to the AI provider you choose.

Built for teams that can't compromise on control

Enterprise

Security-conscious engineering teams

Your source code never leaves your machine. Run entirely locally or behind your VPN. Satisfy InfoSec reviews that block cloud-based coding tools.

Startups

Cost-conscious teams scaling fast

Skip per-seat IDE licenses. Pay only for the API tokens you use. Give every engineer access to coding agents without blowing your tooling budget.

Agencies

Consultants working across clients

Spin up isolated instances per engagement. Keep client code separated. Tear down when the project ends. No data lingers in a vendor's cloud.

Open source, always

Inspect every line. Audit the data flow. Contribute features. The code is the product.

View on GitHub
OSS
License
100%
Open source
0
Telemetry

Common questions

What AI providers does CodeForge support?

CodeForge supports both OpenAI Codex and Claude today, with more providers on the roadmap. You use your own API credentials and can switch between providers freely.

How do I deploy it?

Run npx codeforge-chat, download the desktop app, or clone the repo. It starts the server and opens the UI in your browser. Available for macOS, Linux, and Windows.

Does my code leave my server?

CodeForge runs entirely on your infrastructure. Code context is sent to the AI provider you choose for processing, but never passes through CodeForge servers — because there are none. You host everything.

Is it free?

CodeForge is open source and free to use. The source code is fully available. A managed hosted version with team features is on the roadmap.

What's the difference vs. using the API directly?

CodeForge gives you session management, conversation history, file context, and a polished UI on top of raw APIs. It's the interface layer your team needs to use coding agents productively.

Get started in 60 seconds

One command to get started. Or clone the repo for development.

npx codeforge-chat
View on GitHub Read the docs

Open source · MIT License · No account required