Add Hosted Cloud onboarding to the am CLI init flow - #60
Merged
Conversation
## Summary Add a Hosted Cloud onboarding path to `am init` so users can get a managed AtomicMemory project without Docker or an OpenAI key, alongside credential-handling and installer hardening. ## Changes - Add a Hosted Cloud initialization module that signs in, selects or creates a managed project, and stores a project-bound credential. - Make Hosted Cloud the default `am init` path; keep Connected Local available via `am init --local`, with `--project` inferring Cloud vs. Local from the resolved project type. - Scope managed API key names per installation (`am-cli-<12-hex>`, `connected-local-runtime-<12-hex>`). - Prefer the stored project-bound credential over an exported `ATOMICMEMORY_API_KEY` for init-managed Hosted Cloud profiles; set `ATOMICMEMORY_API_KEY_FORCE=1` to restore the environment override, and surface the active credential source in `am doctor`, `am config env show`, and `am init`. - Harden credential selection and OAuth session handling across CLI commands, and tighten the installer's build-attestation verification. - Improve the R2 mirror workflow's handling of release assets. - Update `README.md` and `crates/cli/README.md` to document the Hosted Cloud quickstart, project selection, and installer verification flags. - Bump the workspace version to 0.2.1 ahead of the next CLI release and refresh a transitive dependency. ## Validation ```bash pnpm run ci:rust pnpm run test:mirror-cli-r2 pnpm run test:install-cli ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Hosted Cloud onboarding path to
am initso users can get a managed AtomicMemory project without Docker or an OpenAI key, alongside credential-handling and installer hardening.Changes
am initpath; keep Connected Local available viaam init --local, with--projectinferring Cloud vs. Local from the resolved project type.am-cli-<12-hex>,connected-local-runtime-<12-hex>).ATOMICMEMORY_API_KEYfor init-managed Hosted Cloud profiles; setATOMICMEMORY_API_KEY_FORCE=1to restore the environment override, and surface the active credential source inam doctor,am config env show, andam init.README.mdandcrates/cli/README.mdto document the Hosted Cloud quickstart, project selection, and installer verification flags.Validation