AI Coding Workspaces
An AI coding workspace is a small development server of your own. You open it in the browser and get VS Code (code-server) with a terminal. AI coding agents are already installed in that terminal. Everything they do stays inside that one container: they cannot reach the server's Docker, the host, or other customers' services.
The catalog has four of them in the Developer Tools category, one per agent, each with a Workspace badge. They run the same image; each one is named after its agent, offers that agent's sign-in keys and explains its sign-in:
| Template | Agent | Sign in with |
|---|---|---|
Codex (codex-workspace) | Codex | Your own OpenAI API key, or your ChatGPT plan |
OpenCode (opencode-workspace) | OpenCode | Your own Anthropic, OpenAI or OpenRouter key, or a provider you connect inside OpenCode |
Pi (pi-workspace) | Pi | Your own Anthropic, Gemini, OpenAI or OpenRouter key, or /login inside Pi |
Claude Code (claude-code-workspace) | Claude Code | Your own Claude subscription or your own Anthropic API key, nothing else |
The names were shortened on 2026-10-16 (AI-1563; before: "Codex Workspace", "OpenCode Workspace", "Pi Workspace", "Dev Workspace with Claude Code"). The template IDs did not change, so services deployed earlier keep working. A new service's default name follows the card's name, for example codex-1a2b. The Claude Code card was called "Workspace with Claude Code" until 2026-10-29 (AI-1841); it is now named after its agent like the others, because the panel only enables Claude Code with your own key or subscription and does not sell or resell it.
Every agent is installed in every workspace; the variant only decides which keys the form offers and what the notes say. Separate templates rather than one with an agent picker, because the panel sets the AI wiring, the notes and the security text per template, and the Claude Code variant must never offer the panel's AI.
All four run the same public image, ghcr.io/aiadminpanel/dev-workspace build 4.145.2-1, pinned by its digest so every deploy gets exactly the same build. The panel builds that image itself from images/dev-workspace/ and publishes it from main only. Existing workspaces keep their current image until updated; their saved editor settings remain theirs.
What is inside
| Part | Version | Notes |
|---|---|---|
| code-server | 4.145.2 (linuxserver build ls376, pinned by digest) | VS Code in the browser |
| Codex CLI | 0.162.1 | OpenAI, Apache-2.0. Started with codex. |
| OpenCode | 1.19.0 | MIT. Started with opencode. |
| Pi | 1.1.0 | MIT. Started with pi. Runs commands without asking first. |
| Claude Code | 2.1.287 | Anthropic, all rights reserved. Not in the image: the Claude Code workspace downloads it from Anthropic when it starts (see below). |
| Toolchain | Node.js 24, Python 3 with venv and pipx, build tools, Git, GitHub CLI (gh), ripgrep, fd, fzf, jq, tree, file, wget, lsof, tmux |
aap-workspace versions prints the installed versions inside the workspace. Every npm package the agents pull in is locked with its integrity hash and installed without running install scripts.
Deploy
- Catalog → Developer Tools → the workspace for your agent.
- Optionally fill in your own provider key. Leave it empty to sign in inside the workspace later. The deploy form offers no AI source from the panel for these templates (see below).
- Give it at least 2 CPU cores and 4 GB of memory. Agents,
npm installand test runs together need it. - Deploy. The service page shows the Workspace password under Credentials.
Open it
The workspace has two locks. First the panel's sign-on: only a browser signed in to the panel gets through. Then code-server asks for the workspace password from the service page. A workspace is a full shell, so there is no "Make public" for it.
The workspace opens ready to use: a terminal with your template's agent already running (codex, opencode, pi or claude), and the welcome note (WELCOME.md, shown as a page) next to it the first time. Nothing to type first. The editor opens in a dark theme (Dark Modern); pick another one under File → Preferences → Theme → Color Theme, and the workspace keeps your choice. Workspaces created before image build 4.141.0-6 keep the theme they had.
Claude Code and Codex: the first terminal signs you in. While the agent is not signed in, and no key was given at deploy, the terminal starts with "Step 1 of 3: sign in":
- Claude Code: Ctrl+click the link, sign in with your Claude account (Pro, Max, Team or Enterprise), then copy the code Claude shows, paste it into the terminal and press Enter.
- Codex: Ctrl+click the link (
auth.openai.com/codex/device), sign in with your ChatGPT account and type the one-time code the terminal shows. With an OpenAI API key given at deploy, presskto use that key instead.
Then the agent starts. Ctrl+C skips the sign-in; aap-workspace signin runs it again later. Starting with image build 4.141.0-8, an unfinished sign-in attempt is remembered too, so new terminals start their agent sessions without repeating that attempt. The terminal reports sign-in success only after checking that authentication is available. Run aap-workspace signin when you want to try again; successful sign-ins and keys supplied at deploy keep working.
With an API key from the deploy page there is no sign-in step: the agent starts with that key. Claude Code does not ask "Do you want to use this API key?" (its preselected answer would be No); the workspace records your approval the way Claude Code does after a Yes, as the key's last 20 characters in ~/.claude.json, never the key itself. Codex's terminal asks once whether to use the key (k) or your ChatGPT plan.
The agent's own editor extension is installed too: Claude Code (✻ in the left bar) in the Claude Code workspace, Codex (OpenAI logo, top right) in the Codex workspace. Both use the terminal's sign-in, so there is nothing else to sign in to. Do not use the extensions' own "Sign in" buttons: they send your browser to an address on your own computer, which cannot reach the workspace. The extensions are pinned with the image and do not update themselves.
- Quit the agent and the terminal stays open as a shell;
aap-workspace startstarts the agent again. Every new terminal starts another agent: see One agent per terminal. - The editor does not ask "Do you trust the authors of the files in this folder?". Its Restricted Mode is off, because in Restricted Mode no terminal can start at all. Automatic tasks stay off, so opening a folder does not run its
.vscodetasks. Still, open a folder as the editor's folder (File → Open Folder) only when you trust the code in it: its.vscodesettings apply at once and can run commands as you, with your saved sign-ins. - VS Code's own AI chat (Copilot) is switched off: the agent in the terminal is the workspace's AI.
- The agents do not offer updates (
/update,pi update): they are installed read-only in the image, and a new image is how they update.
Sign Codex in
| You have | Run once in the terminal |
|---|---|
| Your own OpenAI API key (the field at deploy) | printenv OPENAI_API_KEY | codex login --with-api-key |
| A ChatGPT plan | codex login --device-auth, then open the link it shows and enter the code. Device code sign-in must be allowed in your ChatGPT settings or workspace permissions. |
The sign-in is saved in ~/.codex/auth.json and survives restarts.
Sign OpenCode in
- With a key you filled in at deploy (Anthropic, OpenAI or OpenRouter), OpenCode finds it by itself: pick a model with
/models. - Otherwise run
/connectinside OpenCode. GitHub Copilot signs in with a device code, which works in the workspace. - Without any key, OpenCode starts on a free model from its own hosted service (OpenCode Zen). That model can refuse requests with "OpenCode's free tier can only be used from within OpenCode" even though you are in OpenCode, and it sends your prompts and code to OpenCode's servers.
/connector a key at deploy avoids both. - Do not use plugins that route a Claude Pro or Max plan through OpenCode: Anthropic's terms forbid it. An Anthropic API key is fine.
Sign Pi in
- With a key you filled in at deploy (Anthropic, Gemini, OpenAI or OpenRouter), Pi finds it by itself. Otherwise run
/logininside Pi. - Pi runs every command it decides on without asking. Work in a project committed to Git, so you can see and undo what it changed.
- Do not give Pi a Claude Pro or Max login token: Anthropic's terms forbid third-party tools from using those plans.
Claude Code: your own key or plan only
Anthropic's terms for products that run Claude Code say the product may not pay for, resell or pass on Claude usage for its users; each user signs in with their own Anthropic API key or Claude subscription. So the Claude Code workspace offers no panel AI.
- Where the sign-in lives. A Claude subscription sign-in happens inside the workspace's terminal and stays in the workspace. An API key typed into the deploy form's Anthropic API Key field is stored, encrypted, with the service and passed to the container.
- Operators: that field must hold the end user's own Anthropic key, never the operator's own key (AI-1434: the operator's AI keys never go into a customer's app).
- Installed at start. Claude Code is not baked into the image. When the Claude Code workspace starts, it downloads a fixed version (2.1.287) from Anthropic over HTTPS in the background, checks its SHA-256 against the value pinned in the image (taken from the release's GPG-signed manifest), refuses anything else, and runs Claude Code's own setup into
~/.local. Anthropic's terms allow this: the binary is unmodified, every sign-in method stays available, and each user signs in with their own key or plan. From then on it updates itself there, as a normal install does. About 250 MB; it needs internet access and 4 GB of memory. - If it is still downloading when you open the workspace, the terminal shows the progress and starts Claude Code when it is done. If it fails, the terminal says why in red (
download,checksum,setup,interrupted), names the log (~/.local/state/aap-workspace/claude-install.log) and the retry command,aap-workspace install claude. Typingclauderetries too. - With your Claude subscription (Pro, Max, Team or Enterprise): choose the subscription login, open the link Claude Code shows, sign in, and paste the code the browser shows back into the terminal.
- With your Anthropic API key (the field at deploy): Claude Code asks once whether to use it.
- The sign-in is saved in
~/.claude/.credentials.json;aap-workspace clean-credentialsremoves it.
Why not the panel's AI
Coding agents need tool calls: every command they run is one. Codex talks to providers other than OpenAI only through the Responses API (/v1/responses); OpenCode and Pi use Chat Completions. On demo (LiteLLM v1.83.14 with Ollama 0.40) no tool call came back while streaming, on either API, and Ollama's own endpoints returned none either for the same request. An agent then cannot run a single command, so no workspace offers Provider AI or Local AI yet. A Provider AI with a paid upstream is untested. The image is ready for Codex: given CODEX_AAP_BASE_URL, CODEX_AAP_MODEL and CODEX_AAP_API_KEY, it writes a Codex provider for the gateway that names the key variable instead of containing the key. The Claude Code variant stays without the panel's AI for good (see above).
Codex runs without its own sandbox
On a laptop, Codex runs commands inside its own sandbox (bubblewrap). That sandbox needs kernel features a panel container does not get, so every command would fail. The workspace therefore writes ~/.codex/config.toml once with sandbox_mode = "danger-full-access" and approval_policy = "on-request": the container is the sandbox, and Codex asks only when it decides to. Codex 0.162 has no setting that asks before every command; "never" stops it from asking at all. Pi never asks. The file is yours to change and is never overwritten.
One agent per terminal
Every new terminal starts another independent agent session: choose Terminal → New Terminal, the + button of the terminal panel, or Ctrl+Shift+` to open a new tab with your template's agent running in the workspace folder, using saved sign-in when available. Run several tasks side by side, one per tab. Each tab is named after its session: claude-1, claude-2, ... (codex-1, ... in the Codex workspace).
- Close the browser, keep the agents. Each session runs inside tmux, which stays out of sight (no status bar). Closing the tab only detaches; the agents keep working. Open the workspace again within 3 hours and the editor brings your agent tabs back; later, the first terminal shows the session you used last. Agent sessions always lists all of them.
- See and switch sessions: the arrow next to + → Agent sessions (or run
aap-workspace sessions) lists every session, what runs in it and whether a tab shows it. Type its number to open it in that tab;nstarts a new one.aap-workspace newstarts a new agent in the current tab. - End a session: quit the agent, then type
exit. - Sign in once, or skip: after you complete Claude Code or Codex sign-in (see above), later sessions reuse it when available. New terminals honor skipped or unfinished sign-in attempts and can remain signed out. To try again, run
aap-workspace signin. - To select text for copying, hold Shift while you drag (tmux has the mouse for scrolling).
- A plain shell: the arrow next to + → Shell.
- The tmux settings are in
~/.tmux.confand the terminal settings in VS Code's user settings. Both are written once and yours to change. Workspaces created before image build4.141.0-7keep their old terminal list and the tmux status bar, but their default terminal starts a new agent session too.
A restart of the container ends the agent sessions; your files and sign-ins stay.
The panel's own service terminal (service page → Terminal) is for quick admin commands. It opens a root shell, not the workspace user's, so do not run agents there: they would create files your workspace user cannot change.
AgentSmith working rules (Claude Code and Codex)
The Claude Code and Codex workspaces can start with AgentSmith's working rules, so the agent works carefully from its first prompt: it reads before it changes something, proves a fix with a test, keeps commits small and keeps secrets out of files. AgentSmith is open source (MIT); the image carries a pinned version (0.3.1).
On the deploy page:
- Preload AgentSmith working rules is on by default. Turn it off and nothing is written.
- Your experience with AI agents (new to programming / developer, new to AI agents / experienced) sets how much the agent explains.
What the first start writes, once, into your home folder (never into your code):
| Workspace | Rules file | Also |
|---|---|---|
| Claude Code | ~/.claude/CLAUDE.md | AgentSmith's skills in ~/.claude/skills and ~/.agents/skills |
| Codex | ~/.codex/AGENTS.md | AgentSmith's skills in ~/.agents/skills |
The agents' own settings (~/.claude/settings.json, ~/.codex/config.toml) are not changed: Codex keeps running without its own sandbox, which cannot start in a container. Edit the rules file or delete it; a restart never writes it again.
For one repository instead: run aap-workspace agentsmith add inside the repository (it must be under /config/workspace). It shows what it will add (AGENTS.md, CLAUDE.md for Claude Code, .agentsmith/, .harness/), asks once, and commits nothing. Afterwards it lists exactly which files changed, so you can review them with git diff and commit, or delete the new ones. It also removes the copy in your home folder, so the agent loads the rules once; run it in each repository that should have them.
OpenCode and Pi get no rules yet: AgentSmith cannot install them for those agents at user level.
Where your data lives
| Path | Volume | Contains |
|---|---|---|
/config/workspace | workspace_code | Your code. The editor opens this folder. |
/config | workspace_home | Settings, extensions, tool installs, and saved sign-ins. |
Both survive restarts and updates. Deleting the service with its volumes deletes both.
Security: what the container gives you, and what it does not
What the panel enforces: no privileged mode, no Docker socket, no host network, the standard dropped kernel capabilities and no-new-privileges. That last one is why sudo does not work. Install tools for yourself with npm install -g (goes to ~/.local), pipx install, or a Python venv.
What it does not do:
- The agents' own sandboxes are off. Codex's sandbox cannot start in a container, and Pi has none. The agents run commands directly; the container's limits are what holds them.
- The agents run as you. Whatever you can read in the workspace, an agent can read too: keys in the environment, your Git token, your files.
- The workspace can reach the internet. An agent that reads a malicious web page, issue or file can be tricked into sending your data out. Use credentials that can do little: a Git token for one repository, an AI key with a budget. Never paste production secrets here, and use one workspace per project.
- Sign-ins are files in the home volume (
~/.codex/auth.jsonand the others below), so backups of the service contain them.
To delete every saved sign-in and keep your code, run in the terminal:
aap-workspace clean-credentials
It removes ~/.codex/auth.json, ~/.local/share/opencode/auth.json, ~/.pi/agent/auth.json, ~/.claude/.credentials.json, ~/.git-credentials and ~/.config/gh/hosts.yml after asking once (--yes skips the question). Keys the panel passed in as environment variables cannot be removed from inside; the command names them, and you remove them in the panel. Agents that are still running keep their sign-in in memory until you close them.
For operators: the image
The image is built from images/dev-workspace/ by the Publish Dev Workspace Image workflow. A pull request that changes it builds the image, runs images/dev-workspace/test-image.sh and a vulnerability scan; only main pushes (a manual run on another branch builds and tests but never logs in to the registry). Main pushes :<code-server version>-<revision> (now 4.141.0-8) and :main-<sha>. A published version tag is never overwritten: raise IMAGE_REVISION in the Dockerfile for a new build. The pull request's run checks this before the merge: if it changes images/dev-workspace/ and the tag its Dockerfile would publish already exists on GHCR, it fails and names the revision to use (scripts/check-dev-workspace-version-unpublished.sh). The new build lands in two pull requests: the image first, then, once main has published it, the four templates' VERSION and recommendedVersion pin its tag and digest (a deployable template must pin a published digest; the template tests allow the Dockerfile to be one build ahead while publication completes). Where a package bundled inside code-server or npm has a fixable HIGH or CRITICAL vulnerability and no fixed bundle exists yet, the image replaces just that package with a locked fixed version (images/dev-workspace/base-patches/). Customer servers pull the image without a login, so its GHCR package must be public.