@doguyilmaz/aims 0.4.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,135 +1,71 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/doguyilmaz/aims/v0.4.6/assets/logo.svg" width="96" height="96" alt="aims logo: a prompt whose cursor is coral and ivory">
2
+ <img src="https://raw.githubusercontent.com/doguyilmaz/aims/v0.6.0/assets/logo.svg" width="80" height="80" alt="aims">
3
3
  </p>
4
4
 
5
5
  <h1 align="center">aims</h1>
6
6
 
7
7
  <p align="center">
8
- Several Claude Code and Codex accounts on one machine.<br>
9
- Switch instantly, share history, fail over when one hits its limit.
8
+ Personal and work accounts, without repeated logins.<br>
9
+ Claude Code and Codex in your terminal. AI usage in your macOS menu bar and Edge Dock.
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
- <a href="https://aims.apps.doguyilmaz.com">Documentation</a> ·
14
- <a href="https://aims.apps.doguyilmaz.com/installation">Install</a> ·
15
- <a href="https://aims.apps.doguyilmaz.com/quick-start">Quick start</a>
13
+ <a href="https://aims.doguyilmaz.com">Docs</a> ·
14
+ <a href="https://aims.doguyilmaz.com/installation">Install</a> ·
15
+ <a href="https://aims.doguyilmaz.com/macos-usage">macOS app</a>
16
16
  </p>
17
17
 
18
- ---
19
-
20
- **aims** stands for **AI multi-session**. It lets you use a personal and a work account (or more) for Claude Code and Codex on one computer, without logging out and in to switch.
21
-
22
- - **Log in once per account.** Each account keeps its own login in its own folder. Nothing is copied.
23
- - **Sessions move on their own.** A session starts on your first account. At a usage limit it moves to the next one and continues the conversation, and it moves back once the first works again.
24
- - **One history.** Conversations, settings, skills and MCP servers are shared, so a conversation started on one account continues on the other. Or keep an account's history separate.
25
- - **Your AI can use it.** An MCP server and a skill let Claude Code and Codex check accounts, fail over, and hand a task to another account.
26
-
27
- ```text
28
- $ aims status
29
- Claude Code
30
- order of this project (~/code/client-app); elsewhere personal → work
31
- ● personal pro login expired 7d 37%
32
- work team ready 7d 84% standing in for personal
33
- new sessions start on work
34
-
35
- Codex
36
- ● personal plus ready 7d 31%
37
- work business ready
38
-
39
- Open sessions
40
- Claude Code work ~/code/client-app · 12h59m ago
41
- Claude Code work ~/code/api · 2h4m ago
42
- Codex personal ~/code/blog · 6m ago
43
-
44
- Next
45
- → claude/personal is not logged in aims login claude personal
46
- → codex/personal keeps 51 MB of unused database copies aims doctor --fix
47
-
48
- Every limit and when it resets, also for Antigravity, Grok, Kiro and OpenCode: aims usage
49
- ```
50
-
51
- `aims status` is what is going on: each account's state, what a session does now, the sessions open now and, under **Next**, what is left to set up, each with the command that does it. `aims usage` has every number:
52
-
53
- ```text
54
- $ aims usage
55
- Claude Code
56
- personal pro 5h ━━━━━━ – 7d ━━━━━━ 37% resets 4d
57
- work team 5h ━━━━━━ 2% resets 4h10m 7d ━━━━━━ 84% resets 4d
58
-
59
- Codex
60
- personal plus 5h ━━━━━━ 9% resets 2h5m 7d ━━━━━━ 31% resets 5d
61
- work business 5h ━━━━━━ – 7d ━━━━━━ –
62
-
63
- Antigravity
64
- Gemini Models 5h ━━━━━━ 0% resets 5h 7d ━━━━━━ 5% resets 3d
65
-
66
- Grok x premium
67
- credits 7d ━━━━━━ 26% resets 47h
68
-
69
- Kiro pro
70
- credits month ━━━━━━ 42% resets 12d 420 of 1000 credits
71
-
72
- OpenCode
73
- my-team budget ━━━━━━ 67% resets 9d $33.50 of $50
74
- ```
75
-
76
- `aims` alone opens a [dashboard](https://aims.apps.doguyilmaz.com/dashboard) with both views (`tab` switches) and keys for everything else.
18
+ <p align="center">
19
+ <img src="https://raw.githubusercontent.com/doguyilmaz/aims/v0.6.0/docs/static/images/aims-usage-overview.png" width="264" height="480" alt="Aims Usage overview showing provider quotas and resets">
20
+ &nbsp;&nbsp;&nbsp;
21
+ <img src="https://raw.githubusercontent.com/doguyilmaz/aims/v0.6.0/docs/static/images/aims-usage-edge-dock.png" width="65" height="480" alt="The optional Edge Dock with six provider indicators">
22
+ </p>
77
23
 
78
- ## Install
24
+ <p align="center"><sub>Illustrative preview data. The macOS app is currently a source preview.</sub></p>
79
25
 
80
- ```bash
81
- brew install --cask doguyilmaz/tap/aims # macOS, Linux
82
- curl -fsSL https://raw.githubusercontent.com/doguyilmaz/aims/main/scripts/install.sh | sh
83
- npm install -g @doguyilmaz/aims
84
- go install github.com/doguyilmaz/aims/cmd/aims@latest
85
- ```
26
+ - **Keep accounts separate.** Each account has its own login. Share history and settings, or keep them private.
27
+ - **Keep sessions moving.** Supervised Claude/Codex sessions can continue on another account at a limit and return when the preferred account recovers.
28
+ - **See your limits.** Claude, Codex, Kiro, Grok and OpenCode budgets, with reported reset times and banked resets.
86
29
 
87
- On Windows: `irm https://raw.githubusercontent.com/doguyilmaz/aims/main/scripts/install.ps1 | iex`, or Scoop. See [Installation](https://aims.apps.doguyilmaz.com/installation).
30
+ ## Get started
88
31
 
89
- ## Start
32
+ On macOS:
90
33
 
91
- ```bash
34
+ ```sh
35
+ brew install --cask doguyilmaz/tap/aims
92
36
  aims init
37
+ claude # or codex
93
38
  ```
94
39
 
95
- The setup finds Claude Code and Codex, turns the login you already have into your first account, creates the second, asks which one sessions start on, and connects the tools to aims. Then start sessions the way you always do:
96
-
97
- ```bash
98
- claude # or codex: aims picks the account and watches the session
99
- ```
40
+ The setup connects your accounts and offers shell integration. Without it, use `aims claude` or `aims codex`.
100
41
 
101
- With the shell integration (`aims setup` offers it), plain `claude` and `codex` go through aims. Without it, type `aims claude` and `aims codex`. Each session says what aims does with it when it starts, and Claude Code's status line shows it while it runs:
42
+ [Linux, Windows, npm and Go installation →](https://aims.doguyilmaz.com/installation)
102
43
 
103
- ```text
104
- › claude: personal (auto → work)
105
- personal ▰▱▱▱▱ 12% · 7d 31% · auto → work
44
+ ```sh
45
+ aims # interactive dashboard
46
+ aims usage # quotas and resets
47
+ aims claude@work # pin one session to work
48
+ aims doctor --check # inspect setup and recovery needs
106
49
  ```
107
50
 
108
- | Start a session with | It starts on | At a limit |
109
- | --- | --- | --- |
110
- | `claude`, `aims claude` | your first account | moves to the next account, and back once the first works again |
111
- | `aims claude@work` | work | stays on work (pinned) |
51
+ ## Aims Usage for macOS
112
52
 
113
- `aims` alone shows your accounts, the sessions open now and anything left to set up. `aims order` changes which account comes first (in this project; `--global` for every folder), and `aims doctor` checks everything.
53
+ One app: a menu-bar overview and an optional Edge Dock. Choose Compact or Gauges; place the Dock on either edge of your chosen display. Pick the account, allowance and Used/Remaining percentage for each indicator.
114
54
 
115
- ## How it works
55
+ With a CLI built from this revision, `aims app` opens Aims Usage or offers to install it. The current source preview needs Swift 6.2.0 or newer. Signed public downloads, the separate Homebrew app cask and automatic updates are not active yet. The app includes a CLI and reads your existing accounts; display choices do not switch CLI logins.
116
56
 
117
- Claude Code and Codex read their state from one folder (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`). aims gives each account its own folder holding only its login, and links everything else to your normal `~/.claude` and `~/.codex`. `aims claude` sets the variable and starts the real `claude`; aims is not a proxy and never sees your prompts. Details in [How it works](https://aims.apps.doguyilmaz.com/how-it-works).
118
-
119
- ## Development
120
-
121
- ```bash
122
- go test ./... # unit and end-to-end tests (stand-ins for claude and codex)
123
- go run ./cmd/aims status
124
- hugo server --source docs # the documentation site
125
- ```
57
+ [Build and set up the app →](https://aims.doguyilmaz.com/macos-usage)
126
58
 
127
- Each supported CLI is an adapter in `internal/tool/<name>`; adding one is described in [Adding a tool](https://aims.apps.doguyilmaz.com/how-it-works#adding-a-tool).
59
+ ## Go further
128
60
 
129
- ## Fair use
61
+ [Quick start](https://aims.doguyilmaz.com/quick-start) ·
62
+ [Sharing](https://aims.doguyilmaz.com/sharing) ·
63
+ [Editors and SDKs](https://aims.doguyilmaz.com/other-apps) ·
64
+ [Recovery](https://aims.doguyilmaz.com/troubleshooting) ·
65
+ [Commands](https://aims.doguyilmaz.com/commands)
130
66
 
131
- aims exists to keep work and personal apart. Many people have a work account and a personal one, and want each project to use the right one without logging in and out. aims runs only your own accounts, on your own machine. It starts sessions with the official Claude Code and Codex CLIs, and reads the limits of Antigravity, Grok, Kiro and OpenCode through each tool's own CLI and login (for Kiro, the same usage request `kiro-cli` makes). It is not a service: no one else's account passes through it, and it never shares, pools or resells access. It doesn't disguise itself or send the providers anything their own CLIs wouldn't. Each account stays under its provider's terms, and aims is not meant for stacking accounts to get around a plan's limits. aims is not affiliated with Anthropic, OpenAI, Google, xAI, Amazon or OpenCode.
67
+ For contributors: [how it works](https://aims.doguyilmaz.com/how-it-works), [macOS development](macos/AimsUsage/README.md) and [release preparation](docs/macos-release.md).
132
68
 
133
- ## License
69
+ ## Fair use and license
134
70
 
135
- [MIT](LICENSE)
71
+ aims means **AI multi-session**. It runs your own accounts through the official tools; it does not pool or resell access. Keep each account within its provider’s terms. Unaffiliated with the providers. [MIT](LICENSE).
package/bin/aims.js CHANGED
@@ -10,7 +10,7 @@ const bin = path.join(__dirname, key, process.platform === 'win32' ? 'aims.exe'
10
10
  if (!fs.existsSync(bin)) {
11
11
  console.error(
12
12
  `aims: there is no build for ${key} in this package.\n` +
13
- 'See https://aims.apps.doguyilmaz.com/installation for other ways to install.',
13
+ 'See https://aims.doguyilmaz.com/installation for other ways to install.',
14
14
  );
15
15
  process.exit(1);
16
16
  }
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@doguyilmaz/aims",
3
- "version": "0.4.6",
4
- "description": "Several Claude Code and Codex accounts on one machine: instant switching, shared history, failover.",
3
+ "version": "0.6.0",
4
+ "description": "Claude Code and Codex account management, session routing and AI usage monitoring.",
5
5
  "license": "MIT",
6
- "homepage": "https://aims.apps.doguyilmaz.com",
6
+ "homepage": "https://aims.doguyilmaz.com",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/doguyilmaz/aims.git"