Back to Home
Mng-dev-ai icon

claudex

by Mng-dev-ai

Overview

Self-hosted Claude AI chat interface with sandboxed code execution, offering a full IDE experience and support for multiple AI providers and extensible agents/skills.

Installation

Run Command
docker compose up -d

Environment Variables

  • DATABASE_URL
  • REDIS_URL
  • SECRET_KEY
  • ANTHROPIC_API_KEY (or Z_AI_API_KEY, OPENROUTER_API_KEY, MODAL_API_KEY, E2B_API_KEY depending on chosen providers)
  • SANDBOX_PROVIDER
  • DOCKER_IMAGE
  • BASE_URL
  • FRONTEND_URL
  • ALLOWED_ORIGINS
  • TRUSTED_PROXY_HOSTS
  • DOCKER_TRAEFIK_NETWORK (if using Traefik with Docker sandbox)
  • DOCKER_SANDBOX_DOMAIN (if using Traefik with Docker sandbox)
  • DOCKER_PERMISSION_API_URL (if using Traefik with Docker sandbox)

Security Notes

The core functionality of Claudex relies on executing user-provided code in sandboxed environments, which inherently carries risks. For the Docker sandbox provider, the `api` and `celery-worker` services run with `privileged: true` and mount `/var/run/docker.sock` from the host. This grants these containers root access to the host's Docker daemon, a critical security vulnerability if the application or a component within the sandbox is compromised. While necessary for the sandbox to create isolated containers, it effectively means that a successful exploit of the application could lead to root access on the host machine. The `SECRET_KEY` has a default value for development only, and the documentation correctly warns about using a strong, unique key in production. Marketplace plugins involve downloading and potentially executing external code, which requires trust in the plugin source and vigilance against supply chain attacks. Overall, the direct Docker daemon access is the most significant concern, making it suitable only for trusted, isolated deployment environments.

Similar Servers

Stats

Interest Score94
Security Score5
Cost ClassHigh
Avg Tokens30000
Stars167
Forks34
Last Update2026-01-19

Tags

AI ChatCoding AgentSelf-hostedSandboxFastAPIReactDockerDevelopment EnvironmentCelery