Skip to main content

GeoCopilot: a Codex-powered geospatial research agent for JupyterLab

Project description

GeoCopilot for JupyterLab

GeoCopilot is a Codex-powered geospatial research agent embedded in the right side of JupyterLab. The Python distribution installs all three parts together:

  • the prebuilt JupyterLab 4 frontend extension;
  • the Jupyter Server backend and notebook execution tools;
  • the bundled OpenGMS platform skill, activated only by an explicit user request.

Install

GeoCopilot requires Python 3.9 or later, JupyterLab 4, Node.js, and the Codex CLI.

npm install -g @openai/codex
python -m pip install opengeolab-geocopilot

Open GeoCopilot in JupyterLab and select the settings button in the panel header. Enter the API key, base URL, and model in the LLM settings dialog. The key is stored for the current Jupyter user in ~/.jupyter/geocopilot/settings.json with owner-only permissions, is never returned to the browser, and is applied to new tasks immediately.

Environment variables remain available for managed deployments:

export OPENAI_API_KEY="your-api-key"
export JUPYTER_AGENT_CODEX_MODEL="gpt-5-mini"
# Optional for an OpenAI-compatible gateway:
export JUPYTER_AGENT_CODEX_BASE_URL="https://example.com/v1"

jupyter lab

The package automatically enables its Jupyter Server Extension. Verify the installation with:

jupyter labextension list
jupyter server extension list
opengms-notebook --help

Install In A Docker Image

For an existing JupyterLab 4 image, install the Codex CLI and this package during the image build:

RUN npm install -g @openai/codex \
&& python -m pip install --no-cache-dir opengeolab-geocopilot==0.2.14

API keys and provider URLs must not be stored in the image. They can be entered through the GeoCopilot settings dialog after launch or injected at container startup for managed deployments. Settings entered through the UI are local runtime data and are not included in the Python package or Docker image. OpenGMS model discovery and metadata use the bundled static catalog; model execution uses the configured OpenGeoLab API gateway. Data-method discovery, metadata lookup, and execution connect directly to the OpenGMS Data Method service. Configure private deployments with OPENGMS_DATA_METHOD_API_URL and OPENGMS_DATA_METHOD_TOKEN; keep the token outside the image and repository.

Build A Release

Install release tooling and run the checked release builder:

python -m pip install -e ".[release]"
./scripts/build-release.sh

The wheel and source archive are written to dist/<version>/. Test an unpublished release with a fresh environment or TestPyPI before uploading it to PyPI.

Publish

Create an API token in PyPI and keep it outside the repository:

export TWINE_USERNAME=__token__
export TWINE_PASSWORD="pypi-your-token"
python -m twine upload dist/0.2.14/*

After publication, downstream systems only need the installation command shown above. A new package version must be published for every update because PyPI does not allow replacing an existing release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opengeolab_geocopilot-0.2.28.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opengeolab_geocopilot-0.2.28-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

File details

Details for the file opengeolab_geocopilot-0.2.28.tar.gz.

File metadata

  • Download URL: opengeolab_geocopilot-0.2.28.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for opengeolab_geocopilot-0.2.28.tar.gz
Algorithm Hash digest
SHA256 d9dcbc80d343f30e7d8ee2d4471ef43d8ea311999ff3eaa34e1338b7d7148f2e
MD5 2b333e4c704b89d8c29d459db13ed0a0
BLAKE2b-256 aca83b7d1b764aeeccbdb53d6c384b2181a904378e5d4465aa931e70640f04cf

See more details on using hashes here.

File details

Details for the file opengeolab_geocopilot-0.2.28-py3-none-any.whl.

File metadata

File hashes

Hashes for opengeolab_geocopilot-0.2.28-py3-none-any.whl
Algorithm Hash digest
SHA256 e53a2aa266103d9f97275e3db3143ab2b941aebf5fafe99d0edc62eb53bc5f25
MD5 120de8cda19d30c10f9bf71155a2aae8
BLAKE2b-256 8d8f1d8ada957bea54bf40e97d0e0ac37ff5e90928bda19bad7413129ac28023

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page