简介
Foxcode Openclaw
原始描述
Configure and manage Foxcode AI models in OpenClaw. Guides users through API setup, endpoint selection, primary/fallback model configuration, and status moni...
通过你的 Agent 添加
安装目录:foxcode-openclaw/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: foxcode-openclaw
description: Configure and manage Foxcode AI models in OpenClaw. Guides users through API setup, endpoint selection, primary/fallback model configuration, and status monitoring. Optimized for beginners with psychology-backed teaching approach.
license: MIT
metadata:
version: 1.2.2
category: ai-configuration
author: Skill Genie
Foxcode OpenClaw Setup
Configure Foxcode's Claude Code models in OpenClaw with an interactive, beginner-friendly workflow.
Quick Start
1. Run: python3 scripts/configure_foxcode.py
2. Provide your Foxcode API token
3. Select endpoint(s) - comma-separated or "all"
4. Choose default endpoint and primary model
5. Test connection
6. Restart OpenClaw
1. Run: python3 scripts/configure_foxcode.py
2. Provide your Foxcode API token
3. Select endpoint(s) - comma-separated or "all"
4. Choose default endpoint and primary model
5. Test connection
6. Restart OpenClaw
Note: The wizard saves API key to ~/.openclaw/agents/main/agent/auth-profiles.json (OpenClaw's auth system).
Triggers
- "set up foxcode in openclaw"
- "configure foxcode models"
- "setup openclaw with foxcode"
- "check foxcode status"
- "change my openclaw model"
- "/foxcode-setup"
Capabilities
1. Interactive Configuration (configure_foxcode.py)
1. Interactive Configuration (configure_foxcode.py)
Guided setup wizard that:
- Validates API token format
- Allows selecting multiple endpoints (comma-separated or "all")
- Explains endpoint differences (speed vs cost vs features)
- Sets default endpoint and primary model
- Adds all 3 models to each selected endpoint
- Saves API key to
auth-profiles.json(OpenClaw's auth system) - Tests connection before finishing
Usage:
python3 scripts/configure_foxcode.py
2. Status Monitoring (check_status.py)
Check health and availability of all Foxcode endpoints:
- Endpoint response times
- Current status (up/down)
- Recent incident history
- Recommended alternative if issues detected
Usage:
# Check all endpoints
python3 scripts/check_status.py
# Check specific endpoint
python3 scripts/check_status.py --endpoint ultra
# JSON output for automation
python3 scripts/check_status.py --format json
3. Configuration Validation (validate_config.py)
Verify your setup is correct:
- API token validity
- Base URL accessibility
- Model availability
- Configuration file syntax
Usage:
# Validate current config
python3 scripts/validate_config.py
# Validate specific file
python3 scripts/validate_config.py --config ~/.config/openclaw/config.json
Workflow
Phase 1: Preparation (2 minutes)
Before you start:
- Have your Foxcode API token ready (get one at https://foxcode.rjj.cc/api-keys)
- Know where your OpenClaw config file is located
- Optional: Check current status to pick the best endpoint
Quick check:
python3 scripts/check_status.py
Phase 2: Interactive Setup (5 minutes)
Run the configuration wizard:
python3 scripts/configure_foxcode.py
The wizard will:
- Ask for your API token (input is hidden for security)
- Show available endpoints with current status
- Let you select multiple endpoints (comma-separated or "all")
- Ask which endpoint should be default
- Let you select primary model
- Test the connection
- Save to
openclaw.json(models/endpoints) - Save API key to
auth-profiles.json
Phase 3: Verification (2 minutes)
Restart OpenClaw to apply changes:
# Restart the gateway
openclaw gateway restart
Validate everything is working:
python3 scripts/validate_config.py
Run a test prompt in OpenClaw to confirm.
Phase 4: Monitoring (ongoing)
Check status anytime:
python3 scripts/check_status.py
Endpoint Reference
Endpoint
URL
Best For
Characteristics
Official
https://code.newcli.com/claude
Reliability
Standard pricing, full features
Super
https://code.newcli.com/claude/super
Cost efficiency
Discounted rate, good for most tasks
Ultra
https://code.newcli.com/claude/ultra
Maximum savings
Lowest cost, may have rate limits
AWS
https://code.newcli.com/claude/aws
Speed
AWS infrastructure, fast response
AWS (Thinking)
https://code.newcli.com/claude/droid
Complex tasks
Extended thinking capability
| Endpoint | URL | Best For | Characteristics |
|---|---|---|---|
| Official | https://code.newcli.com/claude |
Reliability | Standard pricing, full features |
| Super | https://code.newcli.com/claude/super |
Cost efficiency | Discounted rate, good for most tasks |
| Ultra | https://code.newcli.com/claude/ultra |
Maximum savings | Lowest cost, may have rate limits |
| AWS | https://code.newcli.com/claude/aws |
Speed | AWS infrastructure, fast response |
| AWS (Thinking) | https://code.newcli.com/claude/droid |
Complex tasks | Extended thinking capability |
Status Page: https://status.rjj.cc/status/foxcode
Model Selection Guide
Primary Model Selection
| Model | Strengths | Best For |
|---|---|---|
claude-opus-4-5-20251101 |
Most capable | Complex reasoning, coding, analysis |
claude-sonnet-4-5-20251101 |
Balanced | General tasks, daily use |
claude-haiku-4-5-20251101 |
Fast, cheap | Quick tasks, high volume |
Fallback Strategy
Configure 1-2 fallback models for reliability:
Recommended setups:
- Conservative: Opus → Sonnet → Haiku
- Balanced: Sonnet → Haiku
- Cost-optimized: Haiku (primary) → Sonnet (for complex tasks)
Troubleshooting
Common Issues
"API key not found" or auth errors
- Check
~/.openclaw/agents/main/agent/auth-profiles.jsonhasfoxcode:defaultprofile - Verify the
keyfield contains your valid Foxcode token - Re-run the wizard to update auth-profiles.json
"systemctl --user unavailable: spawn systemctl EACCES"
- Docker installation: This is a permissions issue in the container
- Fix: Restart the Docker container instead of using gateway restart
docker restart <openclaw-container-name> - Or restart via Docker Desktop
- The gateway service check may fail but OpenClaw can still work
"API token invalid"
- Double-check token from https://foxcode.rjj.cc/api-keys
- Ensure no extra spaces when copying
- Regenerate token if needed
"Endpoint unreachable"
- Check status:
python3 scripts/check_status.py - Try alternative endpoint
- Check your network connection
"Model not available"
- Verify model name spelling
- Check if model is available on your endpoint tier
- Try fallback model
Getting Help
- Check status page: https://status.rjj.cc/status/foxcode
- Review detailed guides in
references/
- Re-run
configure_foxcode.py to reconfigure
File Structure
foxcode-openclaw/
├── SKILL.md # This file
├── README.md # Detailed setup guide
├── references/
│ ├── foxcode-endpoints.md # Endpoint details
│ └── openclaw-config.md # Configuration reference
├── scripts/
│ ├── configure_foxcode.py # Interactive setup wizard
│ ├── check_status.py # Status monitoring
│ └── validate_config.py # Config validation
└── assets/
└── templates/
└── setup-checklist.md # Printable checklist
References
- Endpoint Details:
references/foxcode-endpoints.md
- OpenClaw Config:
references/openclaw-config.md
- Setup Checklist:
assets/templates/setup-checklist.md
Related Skills
Skill
Use When
psychology-master
Need to adapt teaching for different learner profiles
ui-ux-pro-max
Need to create additional visual guides
Changelog
v1.2.2 (Current)
- Fix: Create auth profiles for ALL endpoint providers (foxcode, foxcode-aws, foxcode-aws-thinking, etc.)
- Each provider now gets its own
provider:default entry in auth-profiles.json
- Fixed "No API key found for provider" error when using multiple endpoints
v1.2.1
- Fix: Correct restart command to
openclaw gateway restart
- Updated troubleshooting for Docker/Linux systemctl error
v1.2.0
- Fix: Use
auth-profiles.json for API keys (not openclaw.json)
- Added
update_auth_profiles() function for proper OpenClaw auth
- Removed env var approach - OpenClaw uses its own auth system
- Added macOS troubleshooting for systemctl error
- Updated all docs to reflect correct OpenClaw config structure
v1.1.0
- Multi-endpoint selection (comma-separated or "all")
- All 3 models added to each selected endpoint
- Environment variable reference for API key security
- Auto-set
FOXCODE_API_TOKEN in shell profile
- Separate provider for each endpoint (foxcode, foxcode-super, etc.)
v1.0.0
- Initial release
- Interactive configuration wizard
- Status monitoring script
- Validation script
- Psychology-optimized README guide
references/configure_foxcode.py to reconfigurefoxcode-openclaw/
├── SKILL.md # This file
├── README.md # Detailed setup guide
├── references/
│ ├── foxcode-endpoints.md # Endpoint details
│ └── openclaw-config.md # Configuration reference
├── scripts/
│ ├── configure_foxcode.py # Interactive setup wizard
│ ├── check_status.py # Status monitoring
│ └── validate_config.py # Config validation
└── assets/
└── templates/
└── setup-checklist.md # Printable checklist
References
- Endpoint Details:
references/foxcode-endpoints.md
- OpenClaw Config:
references/openclaw-config.md
- Setup Checklist:
assets/templates/setup-checklist.md
Related Skills
Skill
Use When
psychology-master
Need to adapt teaching for different learner profiles
ui-ux-pro-max
Need to create additional visual guides
Changelog
v1.2.2 (Current)
- Fix: Create auth profiles for ALL endpoint providers (foxcode, foxcode-aws, foxcode-aws-thinking, etc.)
- Each provider now gets its own
provider:default entry in auth-profiles.json
- Fixed "No API key found for provider" error when using multiple endpoints
v1.2.1
- Fix: Correct restart command to
openclaw gateway restart
- Updated troubleshooting for Docker/Linux systemctl error
v1.2.0
references/foxcode-endpoints.mdreferences/openclaw-config.mdassets/templates/setup-checklist.md| Skill | Use When |
|---|---|
| psychology-master | Need to adapt teaching for different learner profiles |
| ui-ux-pro-max | Need to create additional visual guides |
Changelog
v1.2.2 (Current)
- Fix: Create auth profiles for ALL endpoint providers (foxcode, foxcode-aws, foxcode-aws-thinking, etc.)
- Each provider now gets its own
provider:defaultentry in auth-profiles.json - Fixed "No API key found for provider" error when using multiple endpoints
v1.2.1
openclaw gateway restart- Fix: Use
auth-profiles.jsonfor API keys (not openclaw.json) - Added
update_auth_profiles()function for proper OpenClaw auth - Removed env var approach - OpenClaw uses its own auth system
- Added macOS troubleshooting for systemctl error
- Updated all docs to reflect correct OpenClaw config structure
v1.1.0
FOXCODE_API_TOKEN in shell profile- Initial release
- Interactive configuration wizard
- Status monitoring script
- Validation script
- Psychology-optimized README guide
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。