okbest2024/openclaw-backup/openclaw-config-fix
Claude Code and agent skill by okbest2024/openclaw-backup
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Fix OpenClaw HTTP 500 'named capturing group' error caused by ${env:} syntax in config. Invoke when OpenClaw shows Java regex error or config parsing fails.
Install
npx vskill@latest install okbest2024/openclaw-backup/openclaw-config-fixSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as okbest2024/openclaw-backup/openclaw-config-fix.
OpenClaw Configuration Fix Skill
Fixes the HTTP 500 error: java.lang.IllegalArgumentException: named capturing group is missing trailing '}' in OpenClaw.
Problem Cause
When OpenClaw configuration file (~/.openclaw/openclaw.json) uses environment variable references like ${env:BAILIAN_API_KEY}, some AI API providers (like Alibaba Bailian) interpret this as a Java named capturing group regex pattern, causing HTTP 500 errors.
Quick Fix Commands
1. Check for problematic syntax
2. Replace environment variable references with actual values
3. Restore from backup if config is corrupted
4. Restart Gateway
5. Verify fix
Common Issues
| Issue | Solution | |
|---|---|---|
Config file corrupted (only shows }) | Restore from .bak file | |
| JSON parse error | Validate JSON syntax | |
| Gateway not connecting | Restart gateway service | |
| Port 18789 in use | Kill existing process: taskkill /PID <pid> /F |
Diagnostic Commands
Prevention
- Avoid using
${env:VARIABLE_NAME}syntax in OpenClaw config files - Use actual values or environment variable expansion before config is read
- Keep backups of working configuration files
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingworkspace/skills/openclaw-config-fix/openclaw-config-fix/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/okbest2024/openclaw-backup/openclaw-config-fix)