Install

Install Bearing, connect Jev, and give your agent a set of rules to work with.

  1. Install the Bearing CLI

    From your repository root, run:

    npm install -D bearing-lint
  2. Connect Jev

    Enter your Jev API key at the prompt. Bearing saves it locally.

    npx bearing auth set-key
  3. Set up your agent

    From your repository root, choose the command for your agent. This installs the Bearing skill and enables end-of-turn checks.

    # Codex
    npx bearing init --agent codex --hooks
    
    # Claude Code
    npx bearing init --agent claude --hooks

    Restart your agent and approve its project hooks when prompted.

  4. Create your rules

    Invoke $bearing in Codex or /bearing in Claude Code. Ask your agent to turn your project preferences and skills into rules.

    Review the rules, validate them, and run your first check:

    npx bearing rules
    npx bearing validate
    npx bearing check