eve-memory-client 0.3.0__tar.gz

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.
Files changed (60) hide show
  1. eve_memory_client-0.3.0/.gitignore +9 -0
  2. eve_memory_client-0.3.0/LICENSE +200 -0
  3. eve_memory_client-0.3.0/PKG-INFO +488 -0
  4. eve_memory_client-0.3.0/README.md +457 -0
  5. eve_memory_client-0.3.0/eve_client/__init__.py +24 -0
  6. eve_memory_client-0.3.0/eve_client/__main__.py +4 -0
  7. eve_memory_client-0.3.0/eve_client/_version.py +28 -0
  8. eve_memory_client-0.3.0/eve_client/apply.py +324 -0
  9. eve_memory_client-0.3.0/eve_client/atomic.py +58 -0
  10. eve_memory_client-0.3.0/eve_client/auth/__init__.py +12 -0
  11. eve_memory_client-0.3.0/eve_client/auth/base.py +59 -0
  12. eve_memory_client-0.3.0/eve_client/auth/file_store.py +34 -0
  13. eve_memory_client-0.3.0/eve_client/auth/keyring_store.py +34 -0
  14. eve_memory_client-0.3.0/eve_client/auth/local_store.py +162 -0
  15. eve_memory_client-0.3.0/eve_client/backup.py +68 -0
  16. eve_memory_client-0.3.0/eve_client/claude_hook_entry.py +4 -0
  17. eve_memory_client-0.3.0/eve_client/claude_hooks.py +498 -0
  18. eve_memory_client-0.3.0/eve_client/cli.py +2028 -0
  19. eve_memory_client-0.3.0/eve_client/config.py +335 -0
  20. eve_memory_client-0.3.0/eve_client/detect/__init__.py +5 -0
  21. eve_memory_client-0.3.0/eve_client/detect/base.py +98 -0
  22. eve_memory_client-0.3.0/eve_client/gemini_hook_entry.py +4 -0
  23. eve_memory_client-0.3.0/eve_client/gemini_hooks.py +454 -0
  24. eve_memory_client-0.3.0/eve_client/importer/__init__.py +47 -0
  25. eve_memory_client-0.3.0/eve_client/importer/adapters.py +685 -0
  26. eve_memory_client-0.3.0/eve_client/importer/ledger.py +712 -0
  27. eve_memory_client-0.3.0/eve_client/importer/models.py +185 -0
  28. eve_memory_client-0.3.0/eve_client/importer/upload.py +790 -0
  29. eve_memory_client-0.3.0/eve_client/integrations/__init__.py +5 -0
  30. eve_memory_client-0.3.0/eve_client/integrations/claude_code.py +112 -0
  31. eve_memory_client-0.3.0/eve_client/integrations/claude_desktop.py +36 -0
  32. eve_memory_client-0.3.0/eve_client/integrations/codex_cli.py +86 -0
  33. eve_memory_client-0.3.0/eve_client/integrations/gemini_cli.py +128 -0
  34. eve_memory_client-0.3.0/eve_client/integrations/provider.py +56 -0
  35. eve_memory_client-0.3.0/eve_client/integrations/registry.py +21 -0
  36. eve_memory_client-0.3.0/eve_client/integrity.py +89 -0
  37. eve_memory_client-0.3.0/eve_client/interactive.py +312 -0
  38. eve_memory_client-0.3.0/eve_client/lock.py +116 -0
  39. eve_memory_client-0.3.0/eve_client/manifest.py +173 -0
  40. eve_memory_client-0.3.0/eve_client/memory_cli.py +240 -0
  41. eve_memory_client-0.3.0/eve_client/merge.py +815 -0
  42. eve_memory_client-0.3.0/eve_client/models.py +144 -0
  43. eve_memory_client-0.3.0/eve_client/oauth_device.py +188 -0
  44. eve_memory_client-0.3.0/eve_client/operation_policy.py +99 -0
  45. eve_memory_client-0.3.0/eve_client/operations.py +140 -0
  46. eve_memory_client-0.3.0/eve_client/path_policy.py +76 -0
  47. eve_memory_client-0.3.0/eve_client/plan.py +67 -0
  48. eve_memory_client-0.3.0/eve_client/recovery.py +27 -0
  49. eve_memory_client-0.3.0/eve_client/safe_fs.py +92 -0
  50. eve_memory_client-0.3.0/eve_client/scope.py +263 -0
  51. eve_memory_client-0.3.0/eve_client/server.py +574 -0
  52. eve_memory_client-0.3.0/eve_client/state_binding.py +167 -0
  53. eve_memory_client-0.3.0/eve_client/state_dir.py +72 -0
  54. eve_memory_client-0.3.0/eve_client/tool_state.py +79 -0
  55. eve_memory_client-0.3.0/eve_client/transaction_state.py +57 -0
  56. eve_memory_client-0.3.0/eve_client/tty.py +13 -0
  57. eve_memory_client-0.3.0/eve_client/uninstall.py +185 -0
  58. eve_memory_client-0.3.0/eve_client/verify.py +302 -0
  59. eve_memory_client-0.3.0/examples/README.md +77 -0
  60. eve_memory_client-0.3.0/pyproject.toml +60 -0
@@ -0,0 +1,9 @@
1
+ .pytest_cache/
2
+ .coverage
3
+ dist/
4
+ build/
5
+ release/
6
+ __pycache__/
7
+ *.pyc
8
+ *.pyo
9
+ *.pyd
@@ -0,0 +1,200 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but not
33
+ limited to compiled object code, generated documentation, and
34
+ conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. Please also get an approval
186
+ from your organization if needed.
187
+
188
+ Copyright 2025 Sherif Kozman
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.
@@ -0,0 +1,488 @@
1
+ Metadata-Version: 2.4
2
+ Name: eve-memory-client
3
+ Version: 0.3.0
4
+ Summary: Eve client installer and local tool integration CLI
5
+ Project-URL: Homepage, https://evemem.com
6
+ Project-URL: Repository, https://github.com/evememory/eve-client
7
+ Project-URL: Issues, https://github.com/evememory/eve-client/issues
8
+ Author: Sherif Kozman
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: ai,cli,eve,installer,mcp,memory
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Build Tools
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: httpx>=0.27
22
+ Requires-Dist: keyring>=25.6
23
+ Requires-Dist: mcp>=1.20
24
+ Requires-Dist: rich>=13.0
25
+ Requires-Dist: tomli-w>=1.2
26
+ Requires-Dist: typer>=0.15
27
+ Provides-Extra: server
28
+ Requires-Dist: httpx>=0.27; extra == 'server'
29
+ Requires-Dist: mcp>=1.20; extra == 'server'
30
+ Description-Content-Type: text/markdown
31
+
32
+ # Eve Memory Client
33
+
34
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
35
+ [![Python >= 3.11](https://img.shields.io/badge/python-%E2%89%A53.11-blue)](https://www.python.org/downloads/)
36
+ [![MCP Compatible](https://img.shields.io/badge/MCP-compatible-brightgreen)](https://evemem.com)
37
+
38
+ `eve-memory-client` is the Python distribution for the local `eve` CLI. It connects supported AI tools to the hosted Eve memory service.
39
+
40
+ It detects local tools, configures MCP, installs Eve-managed prompt and hook files where supported, manages auth, and can verify, repair, or remove the integration later. It can also import local history from supported clients.
41
+
42
+ ## How Eve Works
43
+
44
+ When you run `eve install`, Eve configures four lifecycle hooks that run automatically — no commands needed during your sessions.
45
+
46
+ | Moment | What Eve does |
47
+ | --------------------- | --------------------------------------------------------------------------------------------------- |
48
+ | **Session opens** | Injects your saved preferences, learned rules, and recent session history directly into Claude |
49
+ | **Every prompt** | Silently searches your memory and enriches each message with relevant context before Claude sees it |
50
+ | **Before compaction** | Preserves critical facts before Claude's context window compresses |
51
+ | **Session ends** | Reads the full transcript, extracts new learnings, and stores them for future sessions |
52
+
53
+ Lifecycle hooks are available on Claude Code and Gemini CLI. Eve also connects to Codex CLI and other MCP-compatible clients using prompt seeding, so you get memory across all your tools.
54
+
55
+ ## Quick Start — 5 minutes
56
+
57
+ **1. Get an Eve workspace**
58
+
59
+ Request access at [evemem.com](https://evemem.com). After provisioning, sign in and create an API key at [evemem.com/app/overview](https://evemem.com/app/overview).
60
+
61
+ **2. Install the client**
62
+
63
+ ```bash
64
+ uv tool install git+https://github.com/evememory/eve-client.git
65
+ ```
66
+
67
+ No uv? Use:
68
+
69
+ ```bash
70
+ pipx install git+https://github.com/evememory/eve-client.git
71
+ ```
72
+
73
+ Verify: `eve version`
74
+
75
+ **3. Connect Claude Code** (swap `--tool gemini-cli` for Gemini CLI)
76
+
77
+ ```bash
78
+ eve connect --tool claude-code --api-key <your-eve-api-key>
79
+ ```
80
+
81
+ This combines auth, install, and verify. For step-by-step, see [API key flow](#api-key-flow) below.
82
+
83
+ Expected output:
84
+
85
+ ```
86
+ ✓ MCP config written
87
+ ✓ CLAUDE.md companion updated
88
+ ✓ Lifecycle hooks configured — Eve auto-injects memory context on every session
89
+ ✓ Eve memory is connected and responding
90
+ ```
91
+
92
+ > **What just happened?** Eve installed four lifecycle hooks. From this point forward, every Claude Code session starts with your memory context pre-loaded, and ends with new learnings captured. You never need to ask Claude to use Eve.
93
+
94
+ If `eve connect` fails: run `eve doctor --tool claude-code` and check the diagnostics output. Open an issue at [github.com/evememory/eve-client](https://github.com/evememory/eve-client/issues).
95
+
96
+ **4. Test memory across sessions**
97
+
98
+ In Claude Code, tell Claude:
99
+
100
+ > "Remember that I use PostgreSQL with a users table — email and created_at columns."
101
+
102
+ Start a **new** Claude Code session and ask:
103
+
104
+ > "What database setup did I mention?"
105
+
106
+ Claude will recall it via Eve. ✓
107
+
108
+ See [`examples/`](./examples/) for manual MCP config snippets (no installer needed).
109
+
110
+ ## Install
111
+
112
+ Before installing the client, get an Eve workspace:
113
+
114
+ - Request access: [https://evemem.com](https://evemem.com)
115
+ - After your workspace is provisioned, sign in to the Eve dashboard:
116
+ - [https://evemem.com/app/overview](https://evemem.com/app/overview)
117
+ - If you plan to use API-key auth, create or rotate a tenant key from the Eve admin/user setup flow before connecting your client.
118
+
119
+ ### From GitHub now
120
+
121
+ Preferred:
122
+
123
+ ```bash
124
+ uv tool install git+https://github.com/evememory/eve-client.git
125
+ ```
126
+
127
+ Alternative:
128
+
129
+ ```bash
130
+ pipx install git+https://github.com/evememory/eve-client.git
131
+ ```
132
+
133
+ Or via the standalone bash installer. Save it first; do not pipe remote shell directly into `sh`:
134
+
135
+ ```bash
136
+ curl -fsSL https://raw.githubusercontent.com/evememory/eve-client/main/install.sh -o install-eve.sh
137
+ sh install-eve.sh
138
+ ```
139
+
140
+ Then confirm:
141
+
142
+ ```bash
143
+ eve version
144
+ eve --help
145
+ ```
146
+
147
+ ### Manual config (no installer)
148
+
149
+ See [`examples/`](./examples/) for ready-to-paste MCP config snippets for Claude Code, Gemini CLI, and Codex CLI.
150
+
151
+ ### From PyPI
152
+
153
+ The PyPI distribution is `eve-memory-client`; `eve-client` is not used as the
154
+ PyPI name because that namespace is occupied by a third party.
155
+
156
+ Install with:
157
+
158
+ ```bash
159
+ uv tool install eve-memory-client
160
+ ```
161
+
162
+ or:
163
+
164
+ ```bash
165
+ pipx install eve-memory-client
166
+ ```
167
+
168
+ ## What Eve Client Does
169
+
170
+ - detects supported local AI clients
171
+ - shows an install plan before changing files
172
+ - writes Eve-managed MCP config
173
+ - installs prompt/companion files where supported
174
+ - installs four lifecycle hooks that auto-inject memory context on every session (SessionStart, UserPromptSubmit, PreCompact, Stop)
175
+ - stores auth locally using file-based credential storage
176
+ - provides `eve memory search` and `eve memory status` commands for direct memory access
177
+ - verifies, repairs, rolls back, and uninstalls Eve-managed changes
178
+ - imports local conversation history into Eve from supported clients
179
+
180
+ ## Importing Local History
181
+
182
+ Supported importer sources today:
183
+
184
+ - Claude Code
185
+ - Codex CLI
186
+ - Gemini CLI
187
+
188
+ Core commands:
189
+
190
+ ```bash
191
+ eve import scan --source claude-code
192
+ eve import preview --source claude-code --path <session_file>
193
+ eve import jobs # list scan jobs
194
+ eve auth login --tool claude-code
195
+ eve import upload --job <scan_job_id> --use-auth-from claude-code
196
+ eve import runs # list upload runs
197
+ eve import resume --run <run_id>
198
+ eve import cleanup --days 30
199
+ eve import cleanup --days 30 --apply
200
+ ```
201
+
202
+ How it works:
203
+
204
+ - parses local history on your machine
205
+ - uploads normalized batches to the managed Eve service
206
+ - keeps a local SQLite ledger for scan jobs, upload runs, replay, and resume
207
+ - supports dry-run cleanup of old completed local importer runs by default
208
+
209
+ Importer maintenance:
210
+
211
+ - `eve import cleanup` is a generic local ledger maintenance command, not a client-specific import source feature
212
+
213
+ Auth note:
214
+
215
+ - avoid passing secrets directly on the command line when possible
216
+ - prefer `eve auth login ...` first, then run importer commands without repeating the API key
217
+ - in an interactive shell, `eve auth login --tool claude-code` prompts for the key securely
218
+
219
+ Current rollout note:
220
+
221
+ - correctness and resume are solid
222
+ - very large imports, especially Claude-heavy ones, may still be slower than ideal while batching defaults continue to be tuned
223
+
224
+ ## Supported Clients
225
+
226
+ ### Claude Code
227
+
228
+ Supported today:
229
+
230
+ - MCP config
231
+ - `CLAUDE.md` companion file
232
+ - package-managed hooks
233
+ - importer support: `scan`, `preview`, `upload`, `resume`
234
+
235
+ Primary auth path today:
236
+
237
+ - Eve API key
238
+
239
+ ### Gemini CLI
240
+
241
+ Supported today:
242
+
243
+ - MCP config
244
+ - `GEMINI.md` companion file
245
+ - package-managed hooks
246
+ - importer support: `scan`, `preview`, `upload`, `resume`
247
+
248
+ Primary auth path today:
249
+
250
+ - Eve API key
251
+
252
+ ### Codex CLI
253
+
254
+ Supported today:
255
+
256
+ - MCP config
257
+ - Eve-owned OAuth login
258
+ - runtime bearer token injection
259
+ - importer support: `scan`, `preview`, `upload`, `resume`
260
+
261
+ Primary auth path today:
262
+
263
+ - Eve OAuth
264
+
265
+ Important:
266
+
267
+ - native Codex MCP login is **not** the supported Eve path
268
+
269
+ ### Claude Desktop
270
+
271
+ Not auto-configured locally for hosted Eve.
272
+
273
+ ## Authentication Requirements
274
+
275
+ You need an Eve workspace and either:
276
+
277
+ - an Eve API key, or
278
+ - Eve OAuth access for supported flows
279
+
280
+ Current auth expectations:
281
+
282
+ - Claude Code: API key
283
+ - Gemini CLI: API key
284
+ - Codex CLI: Eve OAuth
285
+
286
+ OAuth browser flow exists for more clients, but it is still experimental outside the Codex path and should not be treated as the default production installer flow yet.
287
+
288
+ ## Basic Usage
289
+
290
+ ### First run
291
+
292
+ ```bash
293
+ eve quickstart
294
+ eve connect --tool claude-code
295
+ eve verify --tool claude-code
296
+ ```
297
+
298
+ ### API key flow
299
+
300
+ ```bash
301
+ eve auth login --tool claude-code --api-key <eve-key>
302
+ eve install --tool claude-code --apply --yes # --apply writes config, --yes skips confirmation
303
+ eve verify --tool claude-code
304
+ ```
305
+
306
+ ### Codex OAuth flow
307
+
308
+ ```bash
309
+ eve auth login --tool codex-cli --auth-mode oauth
310
+ eve install --tool codex-cli --auth-mode oauth --apply --yes
311
+ eve verify --tool codex-cli --auth-mode oauth
312
+ ```
313
+
314
+ ### Memory commands
315
+
316
+ ```bash
317
+ eve memory search "what database do we use" --context naya
318
+ eve memory search "auth patterns" --limit 5 --json
319
+ eve memory status
320
+ eve memory status --json
321
+ ```
322
+
323
+ ### Common commands
324
+
325
+ ```bash
326
+ eve quickstart
327
+ eve connect
328
+ eve install --dry-run
329
+ eve install --apply --yes --tool claude-code
330
+ eve status
331
+ eve doctor
332
+ eve verify
333
+ eve repair --tool gemini-cli --apply --yes
334
+ eve uninstall --tool claude-code --yes
335
+ eve run --tool codex-cli -- exec "Use Eve memory to search for my latest preference."
336
+ ```
337
+
338
+ ## Manual MCP Configuration
339
+
340
+ If you do not want the installer to edit client config for you, add the hosted Eve MCP server manually.
341
+
342
+ ### Shared hosted MCP endpoint
343
+
344
+ ```text
345
+ https://mcp.evemem.com/mcp
346
+ ```
347
+
348
+ ### Claude Code / Gemini CLI (API key)
349
+
350
+ Use a tenant API key from the Eve admin panel.
351
+
352
+ ```json
353
+ {
354
+ "eve-memory": {
355
+ "type": "http",
356
+ "url": "https://mcp.evemem.com/mcp",
357
+ "headers": {
358
+ "X-API-Key": "eve_<tenant>_...",
359
+ "X-Source-Agent": "claude_code"
360
+ }
361
+ }
362
+ }
363
+ ```
364
+
365
+ For Gemini, keep the same shape and change:
366
+
367
+ ```text
368
+ X-Source-Agent = gemini_cli
369
+ ```
370
+
371
+ ### Codex CLI (OAuth)
372
+
373
+ Codex should use an Eve-owned bearer token, not native `codex mcp login`.
374
+
375
+ ```toml
376
+ [mcp_servers.eve-memory]
377
+ url = "https://mcp.evemem.com/mcp"
378
+ bearer_token_env_var = "EVE_CODEX_BEARER_TOKEN"
379
+ startup_timeout_sec = 60
380
+
381
+ [mcp_servers.eve-memory.headers]
382
+ X-Source-Agent = "codex_cli"
383
+ ```
384
+
385
+ OAuth resource:
386
+
387
+ ```text
388
+ https://mcp.evemem.com/mcp
389
+ ```
390
+
391
+ Codex prompt seeding belongs in the active project `AGENTS.md`. Eve manages its
392
+ own marked block inside that file rather than creating a parallel sidecar file.
393
+
394
+ ### Other MCP clients
395
+
396
+ For other remote MCP clients, the minimum working setup is:
397
+
398
+ 1. MCP URL:
399
+
400
+ ```text
401
+ https://mcp.evemem.com/mcp
402
+ ```
403
+
404
+ 2. One source-agent header:
405
+
406
+ ```text
407
+ X-Source-Agent: your_client_name
408
+ ```
409
+
410
+ 3. Choose one auth style:
411
+
412
+ - API key:
413
+
414
+ ```text
415
+ X-API-Key: eve_<tenant>_...
416
+ ```
417
+
418
+ - OAuth bearer:
419
+
420
+ ```text
421
+ Authorization: Bearer <token>
422
+ ```
423
+
424
+ 4. For OAuth-capable clients, use this resource identifier:
425
+
426
+ ```text
427
+ https://mcp.evemem.com/mcp
428
+ ```
429
+
430
+ 5. Required scopes:
431
+
432
+ ```text
433
+ memory.read
434
+ memory.write
435
+ ```
436
+
437
+ If the client supports a companion instruction file, point it at the active
438
+ instruction file for that tool rather than inventing a second parallel file.
439
+
440
+ ### Which auth path to use
441
+
442
+ - Claude Code: API key
443
+ - Gemini CLI: API key
444
+ - Codex CLI: Eve OAuth
445
+
446
+ If you want Eve to manage the config, prompts, hooks, and verification for you, use `eve connect` instead of editing files manually.
447
+
448
+ ## Safety Model
449
+
450
+ - no silent shell profile mutation
451
+ - no undocumented hooks
452
+ - no overwrite of user-authored instruction files
453
+ - backup and manifest tracking before mutation
454
+ - explicit rollback and uninstall support
455
+ - uninstall removes Eve-managed credentials and tool entries, and warns when a user-modified Eve-owned file requires manual review
456
+
457
+ ## Development
458
+
459
+ Run tests:
460
+
461
+ ```bash
462
+ uv run pytest --cov=eve_client --cov-report=term-missing -q tests
463
+ ```
464
+
465
+ Build Python artifacts:
466
+
467
+ ```bash
468
+ uv build .
469
+ ```
470
+
471
+ Check build artifacts:
472
+
473
+ ```bash
474
+ uvx twine check dist/*
475
+ ```
476
+
477
+ Build standalone release artifacts:
478
+
479
+ ```bash
480
+ bash scripts/build-eve-client-release.sh
481
+ ```
482
+
483
+ Release tags for the PyPI distribution use `eve-memory-client@<version>`, for
484
+ example `eve-memory-client@0.3.0`.
485
+
486
+ ## License
487
+
488
+ Apache-2.0. See [LICENSE](./LICENSE).