# Quickstart: ox CLI (/docs/cli/quickstart)



Quickstart: ox CLI [#quickstart-ox-cli]

Connect your repository to SageOx and give your AI coding agents Team Context.

<CLIOnboardingWidget variant="default" />

What just happened? [#what-just-happened]

When you run `ox init`, the CLI:

1. **Authenticates** with your SageOx account (opens browser if needed)
2. **Registers** your repository with the SageOx platform
3. **Enables** Team Context injection for AI agents

Next steps [#next-steps]

Start using AI agents [#start-using-ai-agents]

Your AI coding agents now receive your team's context automatically:

<Terminal>
  <TerminalComment>
    Claude Code gets your Team Context
  </TerminalComment>

  <TerminalCommand>
    claude
  </TerminalCommand>
</Terminal>

The agent runs `ox agent prime` on startup to inject context about your team's conventions, patterns, and decisions.

If something seems off [#if-something-seems-off]

`ox doctor` is the diagnostic tool, not a required onboarding step:

<Terminal>
  <TerminalCommand>
    ox doctor
  </TerminalCommand>
</Terminal>

It shows:

* Authentication status
* Repository registration
* Team membership
* Context injection health

View your dashboard [#view-your-dashboard]

See your connected repositories and team activity in the [web dashboard](/dashboard).

Troubleshooting [#troubleshooting]

Authentication expired [#authentication-expired]

If you see authentication errors:

<Terminal>
  <TerminalCommand>
    ox login
  </TerminalCommand>
</Terminal>

Repository not recognized [#repository-not-recognized]

If your repo isn't found:

<Terminal>
  <TerminalCommand>
    ox init --force
  </TerminalCommand>
</Terminal>

Context not injecting [#context-not-injecting]

Check your setup in verbose mode:

<Terminal>
  <TerminalCommand>
    ox doctor --verbose
  </TerminalCommand>
</Terminal>

Learn more [#learn-more]

* [Getting Started](/docs/getting-started) - Full setup walkthrough
* [ox login](/docs/cli/auth) - Authentication details
* [ox doctor](/docs/cli/doctor) - Diagnostics reference
* [ox agent prime](/docs/cli/prime) - How context injection works

See also [#see-also]

* [Team Setup Quickstart](/docs/quickstart/team-setup) — for team creators
* [New Team Member Quickstart](/docs/quickstart/new-team-member) — for invited members
