Spaces:
Paused

claude-code / README.md
jodaro01's picture
Run Claude Code Slack bot in Space
9a4934f verified
|
Raw History Blame Contribute Delete
1.34 kB
metadata
title: Claude Code
emoji: 🧠
colorFrom: indigo
colorTo: gray
sdk: docker
app_port: 7860
pinned: false
suggested_storage: small
suggested_variables:
  - name: WORKSPACE_GIT_REPO
    description: >-
      Optional Git repository URL to clone into /workspace/project on first
      boot.
suggested_secrets:
  - name: ZAI_API_KEY
    description: Z.AI / GLM key used by Claude Code.
  - name: SLACK_BOT_TOKEN
    description: Slack bot token for Socket Mode replies.
  - name: SLACK_APP_TOKEN
    description: Slack app-level token for Socket Mode.
  - name: ACCESS_TOKEN
    description: Strong password for browser IDE access.

Claude Code on Hugging Face Spaces

This private Docker Space runs Anthropic Claude Code in a protected browser IDE/terminal.

Set these Space secrets before starting:

  • ZAI_API_KEY or ANTHROPIC_AUTH_TOKEN
  • SLACK_BOT_TOKEN
  • SLACK_APP_TOKEN
  • ACCESS_TOKEN

Optional variable:

  • WORKSPACE_GIT_REPO, clones into /workspace/project on first boot

Open the Space, sign in with ACCESS_TOKEN, open the integrated terminal, then run:

claude

The image installs Claude Code via the npm package and exposes it through code-server's browser terminal. When Slack secrets are present, the Space also starts a Socket Mode Slack bot that answers app mentions with Claude Code output.