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

  1. Sign in to the console in a browser and open Access.

  2. 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.

  3. 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

geonemo, Python client, stdio MCP bridge

geonemo login

API personal token

REST API

Any REST client

Console, Access, audience API

MCP personal token

/mcp resource

HTTP MCP clients

Console, Access, audience MCP

MCP OAuth

/mcp resource

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

services:read

Reads, discovery, search and query requests. Required for MCP

tools:execute

Changing requests such as ingest and running tools

gkb:publish

Publishing knowledge artifacts

agents:control

Controlling agents of the reference agent service

connections:manage

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 services:read

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

project_id is metadata for organizing work

Collections

Any caller with services:read can read every collection

Tenants

Version 1 has no tenant isolation and assumes a trusted network (Security)

Where credentials are stored#

Item

Value

File

$XDG_CONFIG_HOME/geonemo/credentials.json, or ~/.config/geonemo/credentials.json

Permissions

Directory 0700, file 0600, owned by you

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

XDG_CONFIG_HOME

Client, CLI

Moves the credentials file

GEONEMO_SERVICES_API_ENDPOINT

geonemo-mcp

Server URL for the stdio bridge

GEONEMO_SERVICES_TOKEN

geonemo-mcp

Overrides the stored login for the bridge

GEONEMO_MCP_PROJECT_ID

geonemo-mcp

Project sent by the bridge, default default

SSL_CERT_FILE

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.