Skip to main content

Documentation Index

Fetch the complete documentation index at: https://authsome.agentr.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

G2 uses a long-lived API key. Authsome stores the key encrypted in the local vault, injects it at request time through the proxy, and keeps it out of shell history, process listings, and environment dumps.

At a glance

Provider nameg2
Display nameG2
Auth typeAPI key
HeaderAuthorization: Token <key>
Proxy hostapi.g2.com
Env varG2_API_TOKEN
Provider docshttps://api.g2.com/

Get a key

See the G2 API documentation at https://api.g2.com/ for how to obtain a key. G2 API access is negotiated with G2’s team; there is no self-serve key dashboard.

Log in

uvx authsome login g2
A local browser form opens at http://127.0.0.1:7998. Paste the key into the masked input and submit. On a headless machine without a graphical session, authsome falls back to masked terminal input via getpass. The browser bridge is skipped automatically when no display is available. Verify:
uvx authsome get g2 --field status
# → connected

Use the key

Run the agent under the proxy. The library tab is for embedding authsome inside a larger Python orchestrator.
uvx authsome run -- python my_agent.py
Under the proxy, authsome sets G2_API_TOKEN=authsome-proxy-managed in the child’s environment and injects the real key into outbound requests to api.g2.com. The child process never sees the actual value.

Multiple keys

Pass --connection <name> on login and on every read command to keep two or more accounts on the same provider side by side. See Multiple connections per provider for the full pattern.
uvx authsome login g2 --connection personal
uvx authsome login g2 --connection team

Rotate or remove the key

uvx authsome login g2 --force          # rotate
uvx authsome logout g2                  # remove local credential
uvx authsome remove g2                  # remove all local state for the provider
API-key providers have no revocation endpoint, so revoke and remove are equivalent for G2.

Override the bundled definition

uvx authsome inspect g2 > ~/.authsome/providers/g2.json
# edit fields
uvx authsome list   # source now shows "custom" for g2
See Provider schema for every field.

What’s next

Run agents with the proxy

Keep the key out of the agent’s environment entirely.

Multiple connections per provider

Keep two or more keys on the same provider side by side.

API-key providers

All bundled API-key providers.

Provider schema

Every field in a provider definition.