Sign inSign up

docker/sbx-kit-code-server:latest

Multi-platform
Manifest digest

sha256:df47fa984d46f137bbe09b1dff3ebfc8d1941a0c7dd6dbe0b6835d029ead4667

Last pushed

8 days by cdupuis

Type

Sandbox Kit

Manifest digest

sha256:df47fa984d46f137bbe09b1dff3ebfc8d1941a0c7dd6dbe0b6835d029ead4667

yaml
schemaVersion: "3"
displayName: code-server (web VS Code) with Claude Code
description: Runs code-server on port 8080, opened on the sandbox workspace, with the Claude Code VS Code extension preinstalled. Pair with the built-in claude agent so the extension inherits the sandbox's Anthropic credentials.
version: 4.138.0
kind: mixin
provides:
    - [email protected]
requires:
    - claude
capabilities:
    - type: com.docker.sandbox/port@1
      config:
        container: 8080
        name: code-server
        transport: tcp
    - type: com.docker.sandbox/network-policy@1
      config:
        runtime:
            allow:
                - open-vsx.org
                - openvsx.eclipsecontent.org
    - type: com.docker.sandbox/lifecycle@1
      config:
        install:
            - command: |
                set -eu
                ws="${WORKSPACE_DIR:-/}"
                esc=$(printf '%s' "$ws" | sed "s/'/'\\\\''/g")
                mkdir -p /home/agent/.local/bin
                printf '%s\n' '#!/bin/sh' \
                  "exec code-server --bind-addr 0.0.0.0:8080 --auth none '$esc'" \
                  > /home/agent/.local/bin/start-code-server.sh
                chmod 0755 /home/agent/.local/bin/start-code-server.sh
              description: Startup wrapper with the workspace path baked in at sandbox create
              env:
                - WORKSPACE_DIR
              user: "1000"
        startup:
            - background: true
              command:
                - sh
                - -c
                - exec /home/agent/.local/bin/start-code-server.sh > /tmp/code-server.log 2>&1
              description: Start code-server in the background, opened on the primary workspace
              user: "1000"
args:
    version:
        default: 4.138.0
        description: code-server release to install
        pattern: ^[0-9]+\.[0-9]+\.[0-9]+$
        buildArg: CODE_SERVER_VERSION