chore: align setup with EJClaw dual-service architecture
This commit is contained in:
15
README.md
15
README.md
@@ -2,7 +2,7 @@
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
Dual-agent AI assistant (Claude Code + Codex) over Discord.
|
||||
@@ -55,7 +55,7 @@ Each agent has access to:
|
||||
### Prerequisites
|
||||
|
||||
- Linux (Ubuntu 22.04+) or macOS
|
||||
- Node.js 24+ (fnm recommended)
|
||||
- Node.js 20+ (24 recommended, fnm for version management)
|
||||
- [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code)
|
||||
- [Codex CLI](https://github.com/openai/codex) (`npm install -g @openai/codex`)
|
||||
- Bun 1.0+ (for browser automation)
|
||||
@@ -89,6 +89,17 @@ FALLBACK_AUTH_TOKEN= # Fallback provider API key
|
||||
FALLBACK_MODEL= # e.g. kimi-k2.5
|
||||
```
|
||||
|
||||
### Codex Service (optional)
|
||||
|
||||
To run the Codex agent alongside Claude, create `.env.codex`:
|
||||
|
||||
```bash
|
||||
# .env.codex
|
||||
DISCORD_BOT_TOKEN= # Separate Discord bot token for Codex
|
||||
```
|
||||
|
||||
The setup step (`npm run setup -- --step service`) auto-detects `.env.codex` and installs `ejclaw-codex` alongside `ejclaw`. Additional Codex settings (`CODEX_MODEL`, `CODEX_EFFORT`, etc.) can be added to `.env.codex` or as `Environment=` lines in the systemd unit.
|
||||
|
||||
### Authentication
|
||||
|
||||
Multi-account OAuth token rotation is supported via `CLAUDE_CODE_OAUTH_TOKENS` (comma-separated). When one account hits a rate limit, the system automatically rotates to the next.
|
||||
|
||||
Reference in New Issue
Block a user