| summary | read_when | |||
|---|---|---|---|---|
Use Redpill AI GPU TEE models in Clawdbot |
|
Redpill AI provides access to AI models running in GPU-based Trusted Execution Environments (TEEs) with cryptographic attestation. All models run inside secure hardware enclaves, ensuring memory encryption, tamper-proof execution, and verifiable computation.
- Hardware-verified privacy via GPU TEE technology with cryptographic attestation
- Zero trust architecture with memory encryption and isolated execution
- 18 verified models across 4 TEE providers (Phala, Tinfoil, Chutes, Near-AI)
- Verifiable computation ensuring your prompts and responses stay private
- OpenAI-compatible
/v1endpoints
Redpill offers two privacy levels:
| Tier | Description | Models | Status |
|---|---|---|---|
| GPU TEE | Hardware-verified privacy with cryptographic attestation. Models run in secure enclaves with memory encryption and tamper-proof execution. | 18 models across Phala, Tinfoil, Chutes, Near-AI | ✅ Available |
| Extended | Additional models with standard privacy (no TEE hardware guarantee). | TBD | 🔜 Coming soon |
- GPU TEE security: All models run in hardware-secured enclaves with cryptographic attestation
- Memory encryption: Data stays encrypted in GPU memory during inference
- Tamper-proof execution: Verifiable computation guarantees no unauthorized access
- 4 TEE providers: Phala Network (10 models), Tinfoil (4), Chutes (1), Near-AI (3)
- OpenAI-compatible API: Standard
/v1endpoints for easy integration - Streaming: ✅ Supported on all models
- Function calling: ✅ Supported on select models
- Vision: ✅ Supported on Qwen3 VL 30B model
- No hard rate limits: Fair-use throttling may apply for extreme usage
- Sign up at redpill.ai
- Navigate to API Keys in your dashboard
- Create a new API key
- Copy your API key (format:
rp_xxxxxxxxxxxx)
Option A: Environment Variable
export REDPILL_API_KEY="rp_xxxxxxxxxxxx"Option B: Interactive Setup (Recommended)
clawdbot onboard --auth-choice redpill-api-keyThis will:
- Prompt for your API key (or use existing
REDPILL_API_KEY) - Show all available GPU TEE models
- Let you pick your default model
- Configure the provider automatically
Option C: Non-interactive
clawdbot onboard --non-interactive \
--auth-choice redpill-api-key \
--token "rp_xxxxxxxxxxxx"clawdbot agent --message "Hello, are you working?"After setup, Clawdbot shows all available Redpill models. Pick based on your needs:
- Default (our pick):
redpill/deepseek/deepseek-v3.2for strong reasoning with GPU TEE privacy. - Best reasoning:
redpill/deepseek/deepseek-r1-0528orredpill/moonshotai/kimi-k2-thinkingfor complex reasoning tasks. - Best coding:
redpill/qwen/qwen3-coder-480b-a35b-instructfor code generation and analysis. - Vision tasks:
redpill/qwen/qwen3-vl-30b-a3b-instructfor image understanding. - Fast + capable:
redpill/meta-llama/llama-3.3-70b-instructfor balanced performance.
Change your default model anytime using the /model directive in chat:
/model redpill/deepseek/deepseek-r1-0528
List all available models:
clawdbot models list | grep redpillAll models run in hardware-secured GPU TEE environments with cryptographic attestation.
| Model ID | Name | Context | Max Output | Features |
|---|---|---|---|---|
z-ai/glm-4.7-flash |
GLM 4.7 Flash | 203k | 128k | General, multilingual |
qwen/qwen3-embedding-8b |
Qwen3 Embedding 8B | 33k | 512 | Embeddings |
phala/uncensored-24b |
Uncensored 24B | 33k | 8k | Uncensored |
deepseek/deepseek-v3.2 |
DeepSeek v3.2 | 164k | 8k | Default, reasoning |
qwen/qwen3-vl-30b-a3b-instruct |
Qwen3 VL 30B | 128k | 8k | Vision |
sentence-transformers/all-minilm-l6-v2 |
All-MiniLM-L6-v2 | 512 | 512 | Embeddings |
qwen/qwen-2.5-7b-instruct |
Qwen 2.5 7B Instruct | 33k | 8k | General |
google/gemma-3-27b-it |
Gemma 3 27B IT | 54k | 8k | General |
openai/gpt-oss-120b |
GPT OSS 120B | 131k | 8k | General |
openai/gpt-oss-20b |
GPT OSS 20B | 131k | 8k | General |
| Model ID | Name | Context | Max Output | Features |
|---|---|---|---|---|
moonshotai/kimi-k2-thinking |
Kimi K2 Thinking | 262k | 8k | Reasoning |
deepseek/deepseek-r1-0528 |
DeepSeek R1 | 164k | 8k | Reasoning |
qwen/qwen3-coder-480b-a35b-instruct |
Qwen3 Coder 480B | 262k | 8k | Code |
meta-llama/llama-3.3-70b-instruct |
Llama 3.3 70B Instruct | 131k | 8k | General |
| Model ID | Name | Context | Max Output | Features |
|---|---|---|---|---|
minimax/minimax-m2.1 |
MiniMax M2.1 | 197k | 8k | General |
| Model ID | Name | Context | Max Output | Features |
|---|---|---|---|---|
deepseek/deepseek-chat-v3.1 |
DeepSeek Chat v3.1 | 164k | 8k | General |
qwen/qwen3-30b-a3b-instruct-2507 |
Qwen3 30B Instruct | 262k | 8k | General |
z-ai/glm-4.6 |
GLM 4.6 | 203k | 128k | General, multilingual |
| Use Case | Recommended Model | Why |
|---|---|---|
| General chat | deepseek/deepseek-v3.2 |
Default, strong reasoning, GPU TEE |
| Complex reasoning | deepseek/deepseek-r1-0528 |
Reasoning-optimized with R1 architecture |
| Long context reasoning | moonshotai/kimi-k2-thinking |
262k context, reasoning-focused |
| Coding | qwen/qwen3-coder-480b-a35b-instruct |
Code-specialized, 262k context |
| Vision tasks | qwen/qwen3-vl-30b-a3b-instruct |
Only vision model, 128k context |
| Fast + balanced | meta-llama/llama-3.3-70b-instruct |
Llama 3.3, good all-around |
| Uncensored | phala/uncensored-24b |
No content restrictions |
| Embeddings | qwen/qwen3-embedding-8b |
Text embeddings |
Redpill uses a credit-based system. Check redpill.ai/pricing for current rates.
All GPU TEE models incur costs based on:
- Input tokens (per 1M tokens)
- Output tokens (per 1M tokens)
- TEE attestation overhead (minimal)
# Use default model (configured in agents.defaults.model.primary)
clawdbot agent --message "Your question here"
# Configure a specific default model
clawdbot config set agents.defaults.model.primary redpill/deepseek/deepseek-r1-0528
# Use with local session
clawdbot agent --local --session-id my-session --message "Your question here"
# Switch model mid-chat using /model directive
> /model redpill/moonshotai/kimi-k2-thinking| Feature | Support |
|---|---|
| Streaming | ✅ All models |
| Function calling | ✅ Select models (check model capabilities) |
| Vision/Images | ✅ Qwen3 VL 30B only |
| JSON mode | ✅ Supported via response_format |
echo $REDPILL_API_KEY
clawdbot models list | grep redpillEnsure the key starts with rp_.
Run clawdbot models list | grep redpill to see currently available models. All 18 GPU TEE models should be listed.
Redpill API is at https://api.redpill.ai/v1. Ensure your network allows HTTPS connections.
If you receive attestation errors:
- Try a different TEE provider model
- Verify your API key is valid
- Check the main Redpill website for service announcements
{
env: { REDPILL_API_KEY: "rp_..." },
agents: { defaults: { model: { primary: "redpill/deepseek/deepseek-v3.2" } } },
models: {
mode: "merge",
providers: {
redpill: {
baseUrl: "https://api.redpill.ai/v1",
apiKey: "${REDPILL_API_KEY}",
api: "openai-completions",
models: [
{
id: "deepseek/deepseek-v3.2",
name: "DeepSeek v3.2 (GPU TEE)",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 164000,
maxTokens: 8192
}
]
}
}
}
}For maximum privacy, deploy Clawdbot itself inside a Phala Cloud CVM (Confidential Virtual Machine). This creates an end-to-end TEE stack where both the application and the AI inference run in hardware-secured enclaves.
| Layer | TEE Protection |
|---|---|
| Application | Clawdbot runs in Phala Cloud CVM with Intel TDX |
| AI Inference | Redpill routes to GPU TEE models (Phala, Tinfoil, etc.) |
| Result | Your prompts never leave secure enclaves from input to output |
- Phala Cloud account with API key
- Redpill AI API key
- Docker installed locally
- Phala CLI:
npm install -g phala
1. Authenticate with Phala Cloud
phala auth login <your-phala-cloud-api-key>2. Create docker-compose.phala.yml
The container auto-configures Redpill as the default provider when REDPILL_API_KEY is set on first boot.
# docker-compose.phala.yml for Phala Cloud CVM
services:
clawdbot:
image: hashwarlock/clawdbot:redpill
environment:
HOME: /home/node
TERM: xterm-256color
# Auto-configures Redpill provider on first boot
REDPILL_API_KEY: ${REDPILL_API_KEY}
# Auto-configures messaging channels when tokens are provided
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN:-}
# Gateway configuration
GATEWAY_PORT: ${GATEWAY_PORT:-18789}
GATEWAY_AUTH: ${GATEWAY_AUTH:-off}
# Persistence paths
CLAWDBOT_STATE_DIR: /home/node/.clawdbot
CLAWDBOT_WORKSPACE_DIR: /home/node/clawd
volumes:
- clawdbot-data:/home/node
network_mode: host
restart: unless-stopped
volumes:
clawdbot-data:3. Create .env file
# .env - secrets are encrypted to the TEE
REDPILL_API_KEY=rp_xxxxxxxxxxxx
# Optional: messaging channels (auto-configure on boot)
# TELEGRAM_BOT_TOKEN=your-telegram-bot-token
# DISCORD_BOT_TOKEN=your-discord-bot-token
# Optional: pre-approve specific users (skips pairing step)
# TELEGRAM_ALLOWED_USERS=123456789,987654321
# DISCORD_ALLOWED_USERS=123456789012345678,987654321098765432
# Optional: protect the web UI with password auth
# GATEWAY_AUTH=password
# GATEWAY_PASSWORD=your-secure-password4. Deploy to Phala Cloud
phala deploy \
--name clawdbot-tee \
--compose ./docker-compose.phala.yml \
--env-file ./.env \
--vcpu 2 \
--memory 4G \
--disk-size 20G5. Access the Gateway
After deployment, get your CVM's public URL:
phala cvms get clawdbot-teeThe gateway URL follows the Phala Cloud dstack format: https://<DSTACK_APP_ID>-18789.<DSTACK_GATEWAY_URL>. If you enabled GATEWAY_AUTH=password, add ?password=your-password to the URL.
# View logs
phala cvms logs clawdbot-tee
# Check status
phala cvms get clawdbot-tee
# SSH into CVM (if deployed with --dev-os)
phala ssh clawdbot-tee
# Update deployment (use CVM ID from phala cvms get)
phala deploy --cvm-id app_xxxxx --compose ./docker-compose.phala.yml
# Or if phala.toml exists from initial deploy, just run:
phala deployRedpill is automatically configured as the default provider on first boot. If you provided TELEGRAM_BOT_TOKEN or DISCORD_BOT_TOKEN, those channels are also auto-configured and running.
Access your gateway URL to:
- Configure additional channels (Slack, Signal, WhatsApp) via the Channels page
- Start chatting with full TEE privacy (Redpill is already set as default)
- View and switch models via the Config page (
/config)
| Variable | Required | Description |
|---|---|---|
REDPILL_API_KEY |
Yes | Your Redpill API key (auto-configures all 18 GPU TEE models on first boot) |
TELEGRAM_BOT_TOKEN |
No | Telegram bot token (auto-configures and starts Telegram channel on boot) |
DISCORD_BOT_TOKEN |
No | Discord bot token (auto-configures and starts Discord channel on boot) |
TELEGRAM_ALLOWED_USERS |
No | Comma-separated Telegram user IDs to pre-approve (e.g. 123456789,987654321) |
DISCORD_ALLOWED_USERS |
No | Comma-separated Discord user IDs to pre-approve (e.g. 123456789012345678,987654321098765432) |
GATEWAY_PORT |
No | Gateway port (default: 18789) |
GATEWAY_AUTH |
No | Gateway auth mode: off, token, or password (default: off) |
GATEWAY_TOKEN |
No | Gateway token (required when GATEWAY_AUTH=token) |
GATEWAY_PASSWORD |
No | Gateway password (required when GATEWAY_AUTH=password) |
CLAWDBOT_STATE_DIR |
No | Config/credentials path (default: /home/node/.clawdbot) |
CLAWDBOT_WORKSPACE_DIR |
No | Workspace path (default: /home/node/clawd) |
For production deployments, enable gateway authentication to protect the web UI:
# .env - with password auth enabled
REDPILL_API_KEY=rp_xxxxxxxxxxxx
GATEWAY_AUTH=password
GATEWAY_PASSWORD=your-secure-passwordAccess the UI: https://<DSTACK_APP_ID>-18789.<DSTACK_GATEWAY_URL>?password=your-secure-password
For token-based auth (alternative):
GATEWAY_AUTH=token
GATEWAY_TOKEN=your-secret-gateway-tokenAccess with: https://<DSTACK_APP_ID>-18789.<DSTACK_GATEWAY_URL>?token=your-secret-gateway-token
The following channels work in Docker/Linux environments (no Mac services required):
| Channel | Setup | Environment Variables |
|---|---|---|
| Telegram | Easy | TELEGRAM_BOT_TOKEN |
| Discord | Easy | DISCORD_BOT_TOKEN |
| Slack | Medium | SLACK_APP_TOKEN, SLACK_BOT_TOKEN |
| Medium | QR code login via /setup wizard |
|
| Signal | Hard | Requires signal-cli + Java |
Configure channels via the /setup wizard at https://<cvm-url>:18789/setup.
To pre-approve users (skip pairing), you need their platform-specific user IDs:
Telegram User ID:
- Send a message to your bot on Telegram
- The bot will reply with a pairing code and show your user ID:
Clawdbot: access not configured. Your Telegram user id: 1868695838 Pairing code: ABCD1234 - Copy the user ID (e.g.,
1868695838) - Add it to
.env:TELEGRAM_ALLOWED_USERS=1868695838
Discord User ID:
- Send a message to your bot on Discord
- The bot will reply with a pairing code and show your user ID:
Clawdbot: access not configured. Your Discord user id: 723570216251949194 Pairing code: XYZW5678 - Copy the user ID (e.g.,
723570216251949194) - Add it to
.env:DISCORD_ALLOWED_USERS=723570216251949194
Alternative Methods:
Telegram:
- Use @userinfobot on Telegram
- Forward a message to the bot to get the sender's ID
Discord:
- Enable Developer Mode: Settings → Advanced → Developer Mode
- Right-click your username → Copy User ID
The clawdbot-data volume stores:
- Channel credentials and tokens
- Agent configurations
- Session history
- Workspace files
Data persists across CVM restarts and upgrades.