Configuration
CLI-JAW is configured through settings.json, environment variables, and prompt templates.
settings.json
Located at ~/.cli-jaw/settings.json. Key fields:
| Key | Type | Description |
|---|---|---|
anthropic.apiKey | string | Anthropic API key |
openai.apiKey | string | OpenAI API key |
google.apiKey | string | Google AI API key |
telegram.token | string | Telegram bot token |
telegram.allowedChatIds | number[] | Allowed Telegram chat IDs |
discord.token | string | Discord bot token |
discord.guildId | string | Discord guild ID |
model | string | Default AI model |
cli | string | Default CLI runtime |
port | number | Server port (default: 3457) |
language | string | UI language (en/ko/ja/zh) |
Environment Variables
| Variable | Default | Description |
|---|---|---|
CLI_JAW_HOME | ~/.cli-jaw | Data directory override |
PORT | 3457 | Server port |
DASHBOARD_PORT | 24576 | Dashboard port |
heartbeat.json
Located at ~/.cli-jaw/heartbeat.json. Defines recurring scheduled tasks:
{
"jobs": [{
"id": "hb_morning",
"name": "Morning check",
"enabled": true,
"schedule": { "kind": "cron", "cron": "0 9 * * *", "timeZone": "Asia/Seoul" },
"prompt": "daily check-in"
}]
}
Prompt Customization
Create ~/.cli-jaw/prompts/a2-default.md to add custom instructions that are injected into every conversation.
Try it:
- 설정 파일 어디있어?
- 포트 바꾸고 싶어
- 하트비트 설정해줘