Skip to content

Installation

Stable Release

To install GeoAgent, run this command in your terminal:

1
pip install geoagent

This installs the core package with OpenAI support.

Optional Dependencies

Additional LLM Providers

To use Anthropic Claude or Google Gemini:

1
pip install "geoagent[llm]"

Local LLM with Ollama

For offline or air-gapped environments:

1
pip install "geoagent[ollama]"

Make sure Ollama is installed and running locally.

Web UI

For Streamlit or Solara web interfaces:

1
pip install "geoagent[ui]"

Everything

To install all optional dependencies:

1
pip install "geoagent[all]"

From Source

To install the latest development version:

1
pip install git+https://github.com/opengeos/GeoAgent

Or clone and install in editable mode:

1
2
3
git clone https://github.com/opengeos/GeoAgent.git
cd GeoAgent
pip install -e ".[all]"

LLM Configuration

GeoAgent needs an LLM provider to function. Set one of these environment variables:

1
2
3
4
5
6
7
8
# OpenAI (default)
export OPENAI_API_KEY="sk-..."

# Anthropic Claude
export ANTHROPIC_API_KEY="sk-ant-..."

# Google Gemini
export GOOGLE_API_KEY="AI..."

For Ollama, no API key is needed. Just make sure the Ollama server is running:

1
2
ollama serve
ollama pull llama3.1

GeoAgent automatically detects available providers and uses the first one found (in order: OpenAI, Anthropic, Google, Ollama).