Skip to content

Commit 0fc1419

Browse files
authored
Merge pull request #52 from zhujian0805/main
update readme
2 parents e4af68d + a79f473 commit 0fc1419

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,43 @@ pip install -e ".[dev]"
4343

4444
## Quick Start
4545

46-
1. **Set up your API keys** in a `.env` file:
46+
1. **Create your base config files**:
47+
```bash
48+
mkdir -p ~/.config/code-assistant-manager
49+
cp code_assistant_manager/providers.json ~/.config/code-assistant-manager/providers.json
50+
touch ~/.env
51+
chmod 600 ~/.env
52+
```
53+
54+
2. **Set up your API keys** in `.env`:
4755
```env
4856
ANTHROPIC_API_KEY="your-anthropic-key"
4957
GITHUB_TOKEN="your-github-token"
5058
GEMINI_API_KEY="your-gemini-key"
5159
```
5260

53-
2. **Launch the interactive menu:**
61+
3. **Launch the interactive menu:**
5462
```bash
5563
cam launch
5664
```
5765

58-
3. **Select your assistant and start coding!**
66+
4. **Select your assistant and start coding!**
67+
68+
### Configuration files
69+
70+
CAM uses these main configuration files:
71+
72+
- `~/.config/code-assistant-manager/providers.json`: endpoint/provider settings used by `cam`.
73+
- `~/.env`: API keys and sensitive environment variables.
74+
- `~/.config/code-assistant-manager/config.yaml`: repository-source config for skills, agents, and plugins.
75+
76+
### How `config.yaml` is used for skill/agent/plugin repos
77+
78+
- CAM loads `~/.config/code-assistant-manager/config.yaml` first; if missing, it falls back to bundled `code_assistant_manager/config.yaml`.
79+
- The file defines source lists for `skills`, `agents`, and `plugins`.
80+
- Local JSON sources (`skill_repos.json`, `agent_repos.json`, `plugin_repos.json`) are loaded first.
81+
- Remote sources are merged after local sources and do not override existing local keys.
82+
- Remote responses are cached in `~/.cache/code-assistant-manager/repos` (TTL controlled by `config.yaml`).
5983

6084
---
6185

0 commit comments

Comments
 (0)