Sign in and tokens#
Sign in once with the geonemo command and every client on the machine reuses it. For
headless hosts, import a scoped personal token instead.
Prerequisites#
The URL of your GeoNeMo server, such as
https://geonemo.example.com.The
geonemo-clientpackage installed (Use the Python client).
Sign in with a browser#
geonemo --url https://geonemo.example.com login
geonemo --url https://geonemo.example.com whoami
Login opens the browser, uses a loopback callback with PKCE, and stores the result. whoami
prints your identity and granted scopes as JSON. --url is required on every command and must
be HTTPS, except for localhost development.
Sign in on a headless host#
Sign in to the console in a browser and open Access.
Create a personal token. Choose the audience, the scopes and a lifetime of at most 90 days. The token is shown once. After it expires it stays in the Access list for 30 days, then leaves it.
Import it at the hidden prompt:
geonemo --url https://geonemo.example.com login --token
Only a browser session can create tokens; a token cannot mint another token.
Sign out#
geonemo --url https://geonemo.example.com logout
This forgets the local credentials and revokes the OAuth refresh family. It does not revoke personal tokens; revoke those in the console.
Inference connections#
With the agent service client installed, geonemo adds gateways, connections and
models <connection-id> to list gateways, create a connection (the provider key is read at a
hidden prompt) and list its models. Provider keys appear only in those private connection
requests; never put them in tool configuration, repository files or prompts.
Credential types#
Credential |
Audience |
Used by |
How you get it |
|---|---|---|---|
OAuth sign-in |
REST API |
|
|
API personal token |
REST API |
Any REST client |
Console, Access, audience API |
MCP personal token |
|
HTTP MCP clients |
Console, Access, audience MCP |
MCP OAuth |
|
HTTP MCP clients with native OAuth |
The harness login |
API and MCP credentials have separate audiences and cannot be interchanged. The server exposes OAuth discovery, dynamic registration, consent, PKCE, refresh and revocation.
Scopes and project#
Scope |
Allows |
|---|---|
|
Reads, discovery, search and query requests. Required for MCP |
|
Changing requests such as ingest and running tools |
|
Publishing knowledge artifacts |
|
Controlling agents of the reference agent service |
|
Managing inference connections |
Browser sign-in requests all five scopes above and has no scope option; you can only be
granted scopes your account holds. For a narrower grant, use a personal token. Your project is organizational metadata sent as
X-GeoNemo-Project-ID; it is not an authorization boundary.
Access model#
What limits a caller, and what does not:
Layer |
Limits |
Set by |
|---|---|---|
Credential scopes |
Which API areas a caller can use, such as |
The token or sign-in |
MCP scope |
Which tools, collections, datasets and GKB projects an MCP connection exposes |
Your scope file (stdio) or the operator (HTTP) |
Workload credentials |
The collections an agent workload was granted, read-only |
The agent service |
Not a boundary |
Why |
|---|---|
Project |
|
Collections |
Any caller with |
Tenants |
Version 1 has no tenant isolation and assumes a trusted network (Security) |
Where credentials are stored#
Item |
Value |
|---|---|
File |
|
Permissions |
Directory |
Key |
One entry per server URL |
Refresh |
OAuth entries refresh automatically, up to a 30-day absolute lifetime; personal tokens do not refresh |
The shared file cache needs a POSIX host. On Windows pass tokens explicitly.
Environment variables#
Variable |
Read by |
Effect |
|---|---|---|
|
Client, CLI |
Moves the credentials file |
|
|
Server URL for the stdio bridge |
|
|
Overrides the stored login for the bridge |
|
|
Project sent by the bridge, default |
|
Python clients |
Trust bundle when your CA is not in the default one |
GEONEMO_SERVICES_TOKEN overrides the stored credential. Ordinary shared data is visible to all
users; authentication does not establish tenant isolation.
The Python client does not read GEONEMO_SERVICES_TOKEN; pass token= yourself.