Install the CLI, sign in, and start your first session.
When you create a new Polygraph account, we recommend going through the built-in demo experience. It showcases the product and helps you get familiar with its features before you point it at your own repos.
Install
Section titled “Install”Install the CLI with npm:
npm install -g polygraph@latestOr with Homebrew:
brew install nrwl/tap/polygraphRun the CLI
Section titled “Run the CLI”Start with the interactive CLI. It guides you through sign-in, account selection, and session setup.
polygraphPolygraph indexes every repo you have access to and stitches them into one graph. Your agent works against that graph instead of one repo at a time.
Check your account
Section titled “Check your account”After sign-in, confirm the effective account before starting a session.
polygraph whoamiSign in manually
Section titled “Sign in manually”If you want to run the sign-in flow directly, use the auth command.
polygraph auth loginPolygraph uses an OAuth device flow for CLI sign-in. The CLI opens or prints a browser approval URL and code:
> polygraph auth login
* * \ /* ------ * - * Polygraph / \ * *
Opening your browser to authorize Polygraph CLI...
If your browser does not open, visit: https://app.trypolygraph.com/profile/oauth?user_code=XXXX-YYYYCode: XXXX-YYYYCompare the code in your terminal with the code shown in the browser, then approve the request while signed in to Polygraph.
Start a session
Section titled “Start a session”Work happens in sessions. Start one by running the CLI:
polygraph session startOr by invoking the Polygraph skill within your existing agent session:
/polygraph create a session and add all repos that depend on this onePick the repos up front, or describe the task and let Polygraph find them. The list is just a starting point — it can grow as the work crosses repo boundaries.
Add repos as you go
Section titled “Add repos as you go”A session isn't locked to the repos you started with. Prompt the agent to pull in another repo:
Please add vitejs/vite repo to this session.Whatever you can read, your agent can read: any repo you have access to (organization or open source).
List and inspect sessions
Section titled “List and inspect sessions”polygraph session listShow details such as URL, folder, and status for a session.
polygraph session show <session-id>What next
Section titled “What next”Pick a workflow that matches what you want to do.