Direct local invocation#
Run an agent from the command line to prove it works, without publishing a release or starting a persistent service. The run is ephemeral: it uses the locked toolchain image, a pinned skills checkout, a GeoNeMo deployment and a scoped model key.
Prerequisites#
Supply the locked toolchain image, client wheel, and skills snapshot separately. The public checkout includes the current source and examples.
Docker, and the toolchain image pinned by digest (it requires access to the GeoNeMo image registry).
A checkout of the skills at the revision in
skills.commit.The reviewed typed-client wheel named in
nvidia-platform.lock.toml.A GeoNeMo deployment URL, and a model endpoint with a scoped key stored in a file readable only by you (mode 0600).
Steps#
Copy the example environment and set its values:
cp .env.development.example .env.development chmod 600 .env.development
Variable
Value
GEONEMO_PLATFORM_IMAGEThe toolchain image, pinned by digest
GEONEMO_SKILLS_ROOTThe skills checkout at the
skills.commitrevisionGEONEMO_SERVICES_CLIENT_WHEELThe reviewed client wheel
GEONEMO_SERVICES_URLhttps://geonemo.example.comGEONEMO_GKB_PROJECT_ID,GEONEMO_OBSERVER_COLLECTIONSThe data scope the run may use
GEONEMO_AGENT_BASE_URL,GEONEMO_AGENT_MODELAn OpenAI-compatible endpoint and model
GEONEMO_PROVIDER_API_KEY_FILEYour mode-0600 scoped model key file
The deployment URL supplies GeoNeMo data and tools; the model URL supplies inference. They are separate services. For an authenticated deployment, export
GEONEMO_SERVICES_TOKEN: it is passed to the runtime and the MCP subprocess through the environment, never written to the bundle or put in Docker arguments.Validate and materialize the agent:
./scripts/geonemo-dev agent-validate <agent-dir> ./scripts/geonemo-dev materialize <agent-dir>
Materialization verifies the skills commit and the client wheel digest, copies only the assigned skills and writes an ephemeral, Git-ignored bundle with local scope bindings.
Invoke it:
./scripts/geonemo-dev invoke-local <agent-dir> \ "Use catalog_extent to describe the configured collection coverage."
The wrapper uses temporary writable filesystems, reads the key from its file, injects credentials through the process environment and removes the container afterwards. The MCP bridge rejects project, collection, endpoint, skill, tool and model overrides in the prompt.
For a standalone stack, use unused loopback ports and a separate Docker network and volumes.
Result#
The assistant’s response is printed. For a persistent deployment, use
agent-release --registry <registry> --deploy, then invoke-remote or the console.
Troubleshooting#
Symptom |
Fix |
|---|---|
Skills checkout mismatch |
Check out the exact SHA in |
Client wheel mismatch |
Use the reviewed wheel, or run |
401 from the model route |
Create a scoped key for the selected gateway and make its file mode 0600 |
Collection outside the immutable scope |
Add it to the local allowlist before materializing; a run cannot widen it |
No skills found |
Each assigned skill needs its own |
NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided “AS IS”, without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.