Loading...
Loading...
Connect context-mode to Context Mode Cloud. Guides through API URL, token, and org ID configuration. Saves config to ~/.context-mode/sync.json and tests the connection. Trigger: /context-mode:ctx-cloud-setup
npx skill4agent add mksglu/context-mode ctx-cloud-setup~/.context-mode/sync.jsoncat ~/.context-mode/sync.json 2>/dev/null || echo "NOT_FOUND"api_tokenapi_urlorganization_idctx_****abcdhttps://api.context-mode.comhttps://api.context-mode.comctx_~/.context-mode/sync.jsonmkdir -p ~/.context-mode
cat > ~/.context-mode/sync.json << 'JSONEOF'
{
"enabled": true,
"api_url": "<API_URL>",
"api_token": "<API_TOKEN>",
"organization_id": "<ORG_ID>",
"batch_size": 50,
"flush_interval_ms": 30000
}
JSONEOF
chmod 600 ~/.context-mode/sync.json<API_URL><API_TOKEN><ORG_ID>curl -sf -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer <API_TOKEN>" \
"<API_URL>/api/health"200## context-mode cloud setup
- [x] Config saved to ~/.context-mode/sync.json
- [x] Connection test: PASS (200 OK)
- [x] Organization: <ORG_ID>
Cloud sync is now active. Events will be sent to the dashboard
on your next Claude Code session. Run `/ctx-cloud-status` to
check sync health at any time.## context-mode cloud setup
- [x] Config saved to ~/.context-mode/sync.json
- [ ] Connection test: FAIL (<error details>)
Config was saved but the connection test failed. Check that:
1. Your API URL is reachable
2. Your API token is valid and not expired
3. Your network allows outbound HTTPS
Run `/ctx-cloud-setup` again to reconfigure.600Authorization