Quickstart
Tern uses a lightweight local CLI to connect to your codebase. Run this in your repo:
curl -fsSL https://tern.sh/install.sh | bash
tern connectAfter getting you signed in, you’ll see something like this:

From here, you’ll:
- Confirm the agent connection (the app pings your local agent).
- Paste an API key for Anthropic, OpenAI, or Gemini.
- Verify repo access.
(Didn’t run tern connect from a repo? Want to work with multiple repos?
Run tern repo add /path/to/repo at any time.)
That’s it! Go ahead and start planning.
