clay

Multiplayer Claude Code and Codex. Self-hosted team workspace for Claude Code and Codex. Multi-user, browser-based, AI mates with memory.

387
Stars
53
Forks
JavaScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/chadbyte/clay

Getting Started

Guides for using skills like clay.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Clay - self-hosted team workspace for Claude Code and Codex

Multiplayer Claude Code and Codex.

Drop into a teammate's session live.
Or pair with AI mates that remember and push back.
Self-hosted, one toggle between vendors.

npm version npm downloads GitHub stars License: MIT

The browser tab your whole team lives in. Humans, AI agents, projects, sessions, decisions.

Afraid of locking your personal or team knowledge into one vendor? With Clay, your conventions, sessions, and decisions live on your disk. Switch when you want.

A team-shared, self-hosted GUI for Claude Code and Codex CLIs.

npx clay-server
# Scan the QR code to connect from any device

What's Clay?

  • A browser-based workspace for Claude Code and Codex. Open it on any device, alone or with your whole team.
  • A place where your team collaborates across projects. Engineers, PMs, designers, and domain experts share one workspace, hop between projects, drop into each other's sessions.
  • Your virtual team. Mates with names, memory, and roles — architect, reviewer, designer, whoever you need. They learn your codebase, push back on bad ideas, and don't reset between sessions.
  • A multi-project dashboard. Every repo on your machine in one sidebar. Run agents across several in parallel; permission requests and completions surface as notifications.
  • A self-hosted dev server. Runs on your machine in plain JSONL and Markdown. No proprietary database, no cloud relay, no lock-in. Walk away whenever — your data walks with you.
  • A work-automation system. Ralph Loop iterates a feature overnight; cron schedules agents while you're away. Wake up to results, or a clean failure trace.

What it does

Run Claude Code and Codex in one workspace

Open a session, pick a vendor. Switch sessions, pick the other. Clay's adapter layer (YOKE) speaks the Claude Agent SDK and the Codex app-server protocol natively. Cross-vendor instruction loading: Codex reads AGENTS.md, Claude reads CLAUDE.md, Clay merges the rest into the system prompt automatically.

Toggle between Claude Code and Codex in one click

Every project on one dashboard

All your projects live in the sidebar. Jump between them in one click, see live status across each, run agents in several at once. No more cd ~/work/foo && tmux attach && .... One Clay daemon hosts every repo on your machine and gives you a single pane of glass over all of them.

Mates: AI teammates with persistent memory

Mates are AI personas with their own CLAUDE.md, knowledge files, and memory that compounds across sessions. They learn your stack, your conventions, your decision history. @mention them mid-session, DM them directly, or drop them into a debate. They don't flatter you. They push back.

An AI teammate (Mate) pushing back on a bad design pitch in Clay

Debate: structured multi-Mate decisions

Stuck on REST vs GraphQL? Monorepo or split? Surface the question to a debate. Pick panelists, set the format, let your Mates argue both sides with moderated turns. You walk away with a recorded decision, not a vibe check.

Parallel worktrees

Detect existing git worktrees, spin up new ones from the sidebar, and run agents in each one independently. No more "wait, I have uncommitted changes." Each worktree is an isolated session with its own history.

Ralph Loop: autonomous coding while you sleep

Write a PROMPT.md, optionally a JUDGE.md, hit go. Clay iterates: code, evaluate, retry, until the judge approves or you cap the loop. Run it once, or schedule it on standard Unix cron. Wake up to a finished feature or a clean failure trace.

Web UI, mobile, push notifications

Installable PWA on iOS and Android. Push notifications for approvals, errors, and completed tasks. Service worker keeps the app responsive offline. When Claude needs approval, your phone buzzes, you tap approve, the agent keeps going.

Who is Clay for

Small teams (3–10)

Engineers, PMs, designers, and domain experts in one workspace. Non-devs read the codebase and ask questions without ever opening an editor. Engineers @mention each other or drop into a teammate's session to help in real time. Share one org-wide API key or let each member bring their own, with costs routing to whoever ran the model.

Larger teams (10+)

Per-user, per-project, per-session permissions. On Linux, opt in to OS-level isolation: each Clay user maps to a real Linux account, file ACLs enforced via setfacl, processes spawn under the right UID/GID. Per-project API keys for billing separation. Plain JSONL sessions give you an audit trail you can grep.

Solopreneurs and indie developers

You don't have a team yet, so Mates are your team. A persistent architect, a reviewer, a designer — each with their own memory, ready to push back on bad ideas. Run Ralph Loop overnight to ship while you sleep. Toggle Claude and Codex per session to balance cost and capability.

Self-hosting developers

Your code stays on your machine. Sessions are JSONL, knowledge is Markdown, settings are JSON. No proprietary database, no cloud relay, no middleman. CLAUDE.md, AGENTS.md, .cursorrules are all loaded automatically across vendors. Walk away whenever, your data walks with you.

Getting Started

Requirements: Node.js 20+. Authenticated Claude Code CLI, Codex CLI, or both.

npx clay-server

On first run, Clay asks for a port and whether you're solo or with a team. Open the URL or scan the QR code from your phone.

For remote access, use a VPN like Tailscale.

Starting Clay daemon from the CLI with npx clay-server

CLI Options

npx clay-server              # Default (port 2633)
npx clay-server -p 8080      # Specify port
npx clay-server --yes        # Skip interactive prompts (use defaults)
npx clay-server -y --pin 123456
                              # Non-interactive + PIN (for scripts/CI)
npx clay-server --add .      # Add current directory to running daemon
npx clay-server --remove .   # Remove project
npx clay-server --list       # List registered projects
npx clay-server --shutdown   # Stop running daemon
npx clay-server --dangerously-skip-permissions
                              # Bypass all permission prompts (requires PIN at setup)

Run npx clay-server --help for all options.

FAQ

"Is this a Claude Code wrapper?" No. Clay drives Claude Code through the Claude Agent SDK and Codex through the Codex app-server protocol. Both are first-class. Clay adds multi-session orchestration, persistent Mates, structured debates, scheduled agents, multi-user collaboration, built-in MCP servers, and a full browser UI on top.

"Can I run Claude Code and Codex in the same workspace?" Yes. Pick a vendor when you open a session. Switch per session. Same projects, same Mates, same memory.

"How are Mates different from Claude Code's sub-agents?" Sub-agents are ephemeral specialists spawned inside a single Claude Code session — a role and a system prompt for one task, then forgotten when the task ends. Mates are persistent teammates with their own knowledge files and memory that survive every session. A sub-agent forgets you the moment it returns; a Mate remembers your codebase, your decisions, and your conventions across months of work. @mention a Mate mid-session, DM it between sessions, or drop several into a debate.

"Does my code leave my machine?" Only as model API calls (the same as using the CLI directly). Sessions, Mates, knowledge, and settings all stay on disk.

"Does my existing CLAUDE.md / AGENTS.md / .cursorrules work?" Yes. Clay loads native instruction files for each vendor and merges the rest into the system prompt automatically.

"Can I continue a CLI session in the browser?" Yes. CLI sessions show up in the sidebar. Browser sessions can be picked up in the CLI.

"Does each teammate need their own API key?" No. Share one org-wide key, or let each user bring their own. On Linux with OS-level isolation, each member can also use their own Claude Code or Codex login.

"What does OS-level isolation actually do?" On Linux, opt in and Clay provisions each user as a real Linux account. File ACLs are enforced via setfacl, agent processes spawn under the user's UID/GID, and the kernel handles the rest. One teammate can't read another's project files, even by accident. The guarantee comes from the OS, not from a promise in our code.

"Does it work with MCP servers?" Yes. User-configured MCPs from ~/.clay/mcp.json plus built-in browser, email, ask-user, and debate servers. All work in both Claude and Codex sessions.

"Can I use it on my phone?" Yes. Install as a PWA on iOS or Android. Push notifications for approvals, errors, and task completion.

"What is d.clay.studio in my browser URL?" A DNS-only service that resolves to your local IP for HTTPS certificate validation. No data passes through it. All traffic stays between your browser and your machine. See clay-dns for details.

Our Philosophy

One idea: user experience sovereignty.

Not a grand statement. A simple wish: not to have your thinking, your work, and your data locked in the moment a vendor changes a price or rewrites a ToS.

That shows up in the technical choices we made:

  • Your machine is the server. Browser → your daemon → model API. That's the full chain. No vendor cloud, no relay server, no middle tier syncing your sessions through someone else's infrastructure.
  • One toggle between vendors. The adapter layer (YOKE) speaks the Claude Agent SDK and the Codex app-server protocol natively. Switching is a setting, not a migration.
  • Plain text on disk. Sessions, Mates, knowledge, and settings live as JSONL and Markdown. No proprietary database. You can cat, grep, version, and back up everything yourself.
  • Standard formats only. CLAUDE.md, AGENTS.md, .cursorrules, MCP, Unix cron. If you walk away from Clay, your data walks with you in formats every other tool already understands.

That's the principle. The rest of the README is what it makes possible.

Architecture

Clay is a self-hosted daemon. It drives Claude Code (via the Claude Agent SDK) and Codex (via the codex app-server JSON-RPC protocol) through a vendor-agnostic adapter layer (YOKE), and serves a multi-user web workspace over HTTP/WS. Sessions, Mates, and knowledge live as plain JSONL/Markdown on disk.

graph LR
    subgraph Clients
      B1["Browser<br/>User A"]
      B2["Browser<br/>User B"]
      Phone["Phone PWA<br/>+ Push"]
    end

    subgraph Daemon["Clay Daemon (your machine)"]
      Auth["Auth + RBAC"]
      Server["HTTP / WS Server"]
      Project["Project Context"]
      YOKE["YOKE Adapter Layer"]
      MCP["Built-in MCP servers<br/>ask-user / browser /<br/>debate / email"]
      Push["Push (VAPID)"]
    end

    subgraph Vendors["Agent runtimes"]
      Claude["Claude Agent SDK"]
      Codex["codex app-server<br/>(JSON-RPC stdio)"]
    end

    B1 <-->|WS| Server
    B2 <-->|WS| Server
    Phone <-->|WS + push| Server
    Server --> Auth
    Server --> Project
    Project --> YOKE
    Project --> MCP
    Project --> Push
    YOKE --> Claude
    YOKE --> Codex
    Push -.-> Phone

For sequence diagrams, OS-level isolation, daemon IPC, and key design decisions, see docs/guides/architecture.md.

Community Projects

Projects built by the community on top of Clay.

ProjectDescription
clay-streamdeck-pluginStream Deck plugin that turns physical buttons into a live dashboard for managing Clay sessions, worktrees, and permission requests.

Building something with Clay? Share it in Discussions.

Contributors

Contributing

Bug fixes and typo corrections are welcome. For feature suggestions, please open an issue first: https://github.com/chadbyte/clay/issues

If you're using Clay, let us know how in Discussions: https://github.com/chadbyte/clay/discussions

Disclaimer

Not affiliated with Anthropic or OpenAI. Claude is a trademark of Anthropic. Codex is a trademark of OpenAI. Provided "as is" without warranty. Users are responsible for complying with their AI provider's terms of service.

License

MIT

Frequently Asked Questions

What is clay?

clay is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by chadbyte. Multiplayer Claude Code and Codex. Self-hosted team workspace for Claude Code and Codex. Multi-user, browser-based, AI mates with memory. It has 387 GitHub stars.

Is clay safe to use?

clay failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install clay?

Clone the repository with "git clone https://github.com/chadbyte/clay" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is clay written in?

clay is primarily written in JavaScript. It is open-source under chadbyte on GitHub, so you can review or fork the full source.

Are there alternatives to clay?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh clay against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details