cd /news/developer-tools/claude-code-on-unraid-md · home topics developer-tools article
[ARTICLE · art-64981] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Claude Code on Unraid.md

A developer published a guide for running Anthropic's Claude Code AI coding assistant inside a Docker container on Unraid using the Docker Compose Manager plugin. The setup installs Node.js and Claude Code, mounts Unraid directories, and requires creating a wrapper script to launch the tool.

read2 min views19 publishedJul 13, 2026

This will install node js and allow you to use claude code in a docker container on unraid use the compose manager plugin.

Use at your own riskThis will give AI access to whatever files you pass to the container (if using filesystem mcp).

services:
  claude-code:
    image: node:20-alpine
    container_name: claude-code-simple
    restart: unless-stopped
    
    command: sh -c "apk add --no-cache bash && npm install -g @anthropic-ai/claude-code && tail -f /dev/null"
    
    volumes:
      - /mnt/user/appdata:/appdata:rw
      - /mnt/user/downloads:/downloads:rw
      - /mnt/user/media:/media:rw
      
      - /mnt/user/claude-workspace:/workspace:rw
      
      - /var/run/docker.sock:/var/run/docker.sock:rw
    
    working_dir: /workspace
    
    user: root
    
    environment:
      - NODE_ENV=development
      - SHELL=/bin/bash
    
    labels:
      - "com.unraid.docker.managed=composeman"
      - "com.unraid.docker.icon=https://nodejs.org/static/images/logo.svg"
  • Go to Docker Compose Manager in Unraid - Create a new stack called "claude-code"
  • Paste the compose file above
  • Click "Compose Up"

SSH into your server and run:

docker exec -it claude-code-simple sh
echo '#!/bin/bash' > /usr/local/bin/claude-code
echo 'node /usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js "$@"' >> /usr/local/bin/claude-code
chmod +x /usr/local/bin/claude-code
claude-code

Normally you just run claude for claude code, but its aliased claude-code in our wrapper script

If the container gets stopped/restarted:

Access the container:docker exec -it claude-code-simple sh

Create wrapper script(run step 3 above)** Start Claude Code**:claude-code

to add the filesystem mcp server to give claude access to your files, you can run:

claude-code mcp add filesystem -s user -- npx -y @modelcontextprotocol/server-filesystem /appdata /downloads /media

or whatever directories you want it to have access too

  • Bash and Claude Code are automatically installed on container startup
  • The wrapper script needs to be recreated after each container restart
  • All your Unraid directories are accessible within the but for Claude Code to actually access them, you'll need to use the File System MCP.
── more in #developer-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/claude-code-on-unrai…] indexed:0 read:2min 2026-07-13 ·