# Quickstart: ox CLI (https://sageox.ai/docs/cli/quickstart)

# Quickstart: ox CLI

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

<CLIOnboardingWidget variant="default" />

## 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

### 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

`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

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

## Troubleshooting

### Authentication expired

If you see authentication errors:

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

### Repository not recognized

If your repo isn't found:

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

### Context not injecting

Check your setup in verbose mode:

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

## 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

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