Skip to content

Ship .env.example with documented provider + embedding + tuning keys #372

Closed

Description

@rohitg00

Why

~/.agentmemory/.env is the canonical config surface but there is no template. Users have to read src/config.ts + the README provider table + scattered env-reads across src/ to figure out what to set.

This issue tracks shipping .env.example at the repo root (and bundling it into the npm package so npx @agentmemory/agentmemory can offer to copy it on first run).

Scope

.env.example covers, in this order:

  1. LLM provider (pick one): ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY, MINIMAX_API_KEY, OPENAI_API_KEY (+ OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_REASONING_EFFORT, OPENAI_API_KEY_FOR_LLM)
  2. Embedding provider (auto-detected, override via EMBEDDING_PROVIDER): VOYAGE_API_KEY, OPENAI_EMBEDDING_MODEL, OPENAI_EMBEDDING_DIMENSIONS, COHERE_API_KEY
  3. Auth: AGENTMEMORY_SECRET, AGENTMEMORY_REQUIRE_HTTPS
  4. Search tuning: BM25_WEIGHT, VECTOR_WEIGHT, TOKEN_BUDGET
  5. Behaviour flags: AGENTMEMORY_AUTO_COMPRESS, AGENTMEMORY_INJECT_CONTEXT, AGENTMEMORY_ALLOW_AGENT_SDK, CONSOLIDATION_ENABLED
  6. Ports: III_REST_PORT, III_STREAMS_PORT
  7. iii engine pin: AGENTMEMORY_III_VERSION

Each line: a one-line # comment explaining when to set it + the default value commented out.

Acceptance

  • .env.example present at repo root.
  • Bundled into the npm package (files field in package.json).
  • npx @agentmemory/agentmemory init (new command, or fold into doctor) offers to copy it to ~/.agentmemory/.env if it doesn't already exist.
  • CI sync-checker that fails if src/config.ts reads an env var that isn't documented in .env.example.

Closes / supersedes

Activity

  1. magilliam27 commented on May 14, 2026

    @magilliam27

    New to open-source contribution and would like to take a small first slice of this issue:

    • add a root .env.example
    • include it in package.json files
    • add a short README pointer to it

    Would you be open to that as a first PR, leaving the init command and CI sync-checker for follow-ups?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions