JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 367
  • Score
    100M100P100Q98125F

Lithium AI CLI — structured context for your LLM

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lithium-ai/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Lithium AI

    Team decisions, injected straight into your LLM via MCP.

    npm


    What is this?

    Lithium captures what your team has decided and serves it to Claude, Cursor, or any MCP-compatible client. Your AI stops guessing and starts following your actual conventions.

    Install

    npm i -g @lithium-ai/cli

    Quick Start

    lithium

    Login with GitHub. Create an org. Add decisions.

    ┌ Lithium AI
    │
    ├ Organizations
    │ └ my-team
    │
    ├ Decisions
    │ ├ architecture
    │ │ └ "Use Drizzle ORM with fp-ts TaskEither"  v3
    │ ├ architecture.database
    │ │ └ "PostgreSQL with LTREE for hierarchies"   v1
    │ └ infra
    │   └ "Deploy via Vercel, DB on Supabase"       v2
    │
    └ MCP Setup

    MCP Setup

    Two tools are exposed: list_clusters and get_context.

    Claude Code

    claude mcp add --transport http lithium https://getlithium.ai/api/mcp \
      -H "Authorization: Bearer <your-token>"

    Cursor

    Settings > MCP:

    {
      "lithium": {
        "transport": "http",
        "url": "https://getlithium.ai/api/mcp",
        "headers": {
          "Authorization": "Bearer <your-token>"
        }
      }
    }

    Any MCP Client

    Point it at https://getlithium.ai/api/mcp with your bearer token. Grab your token from MCP Setup in the CLI.

    Autopilot (Claude Code)

    Add to your project's .claude/settings.json so Claude checks your team's decisions before every response:

    {
      "hooks": {
        "UserPromptSubmit": [
          {
            "matcher": "",
            "hooks": [
              {
                "type": "command",
                "command": "echo 'Check lithium.list_clusters and get_context for relevant team decisions before proceeding.'"
              }
            ]
          }
        ]
      }
    }

    Concepts

    Concept What it is
    Clusters Nested knowledge domains: architecture, architecture.database, infra.deploy
    Decisions Versioned records inside clusters. Browse history with arrow keys
    Organizations Scopes everything to your team. Invite teammates, they see everything immediately

    Keyboard Shortcuts

    Key Action
    c Create cluster
    d Create decision
    e Edit decision
    -> Older version
    <- Newer version
    Enter Select
    Esc Back

    Team Onboarding

    # 1. Invite from the CLI
    #    Organizations > your org > Invite
    
    # 2. Teammate installs
    npm i -g @lithium-ai/cli
    lithium
    
    # 3. Accept invite
    #    Organizations > Invites > Accept
    # Done.

    Requirements

    • Node.js 18+
    • GitHub account