1- # codev-ai
1+ # CoDev
22
33CoDev — AI Coding Agent Hub. Install, configure, and launch AI coding agents (Claude Code, OpenCode) from a single CLI.
44
@@ -16,24 +16,26 @@ codev install
1616
1717## Commands
1818
19- | Command | What it does |
20- | --------------- | --------------------------------------------------- |
21- | ` codev ` | Show version and help |
22- | ` codev --help ` | Show version and help |
23- | ` codev install ` | Install and configure AI coding agents |
24- | ` codev claude ` | Run the ` claude ` CLI (forwards remaining arguments) |
25- | ` codev opencode ` | Run the ` opencode ` CLI (forwards remaining arguments) |
26- | ` codev logout ` | Sign out of SSO |
19+ | Command | What it does |
20+ | -------------------------- | ----------------------------------------------------- |
21+ | ` codev ` | Show version and help |
22+ | ` codev --help ` | Show version and help |
23+ | ` codev install ` | Install and configure AI coding agents |
24+ | ` codev claude ` | Run the ` claude ` CLI (forwards remaining arguments) |
25+ | ` codev claude --restore ` | Restore ` ~/.claude/ ` from ` ~/.claude.backup/ ` |
26+ | ` codev opencode ` | Run the ` opencode ` CLI (forwards remaining arguments) |
27+ | ` codev opencode --restore ` | Restore ` ~/.config/opencode/ ` from its backup |
28+ | ` codev logout ` | Sign out of SSO |
2729
2830## Restoring a previous configuration
2931
3032Before writing its own config, ` codev ` backs up the directory it would
3133replace. The backup set depends on which agents you chose in Step 1:
3234
33- | Selection | Backed up |
34- | ------------ | - --------------------- |
35- | Claude Code | ` ~/.claude/ ` |
36- | OpenCode | ` ~/.config/opencode/ ` |
35+ | Selection | Backed up |
36+ | ----------- | --------------------- |
37+ | Claude Code | ` ~/.claude/ ` |
38+ | OpenCode | ` ~/.config/opencode/ ` |
3739
3840If you do ** not** select Claude Code, ` codev ` does not touch ` ~/.claude/ ` or
3941` ~/.claude.json ` at all. When Claude Code ** is** selected, ` ~/.claude.json ` is
@@ -52,6 +54,19 @@ keeps the existing backup (usually your original, pre-`codev` state). Answer
5254
5355### Restore
5456
57+ Use the built-in restore shortcut:
58+
59+ ``` bash
60+ codev claude --restore
61+ codev opencode --restore
62+ ```
63+
64+ Each command removes the active directory and renames the corresponding
65+ ` *.backup ` back into place. If no backup exists, the command prints a
66+ "No backup found" message and exits with code 1.
67+
68+ Or do it manually:
69+
5570``` bash
5671# Claude Code
5772rm -rf ~ /.claude && mv ~ /.claude.backup ~ /.claude
@@ -60,8 +75,8 @@ rm -rf ~/.claude && mv ~/.claude.backup ~/.claude
6075rm -rf ~ /.config/opencode && mv ~ /.config/opencode.backup ~ /.config/opencode
6176```
6277
63- The exact restore command for each backup is also printed in the CLI after
64- each tool is configured.
78+ The restore command for each backup is also printed in the CLI after each
79+ tool is configured.
6580
6681## Development
6782
0 commit comments