# Install Geoai

> >

- **Type:** Skill
- **Install:** `agentstack add skill-opengeos-geoai-skills-install-geoai`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [opengeos](https://agentstack.voostack.com/s/opengeos)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [opengeos](https://github.com/opengeos)
- **Source:** https://github.com/opengeos/geoai-skills/tree/main/skills/install-geoai

## Install

```sh
agentstack add skill-opengeos-geoai-skills-install-geoai
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Arguments: `$@`

## Step 1 -- Check if geoai is importable

```bash
python3 -c "import geoai; print(f'geoai v{geoai.__version__}')"
```

- **Success** -> report the version and continue to Step 2 if `--check` or `--extras` was passed, otherwise stop.
- **ImportError** -> go to Step 3.

## Step 2 -- Check optional dependencies

If `--check` is present in `$@`, run a comprehensive dependency check:

```bash
python3 -c "
deps = [
    'geoai', 'geopandas', 'rasterio', 'rioxarray', 'shapely',
    'leafmap', 'numpy', 'pandas', 'matplotlib',
]
for dep in deps:
    try:
        mod = __import__(dep)
        ver = getattr(mod, '__version__', 'unknown')
        print(f'{dep}: {ver}')
    except ImportError:
        print(f'{dep}: NOT INSTALLED')
"
```

If `--extras` is present in `$@`, also check deep learning dependencies:

```bash
python3 -c "
import sys
dl_deps = ['torch', 'torchvision', 'transformers', 'timm', 'segmentation_models_pytorch']
for dep in dl_deps:
    try:
        mod = __import__(dep)
        ver = getattr(mod, '__version__', 'unknown')
        print(f'{dep}: {ver}')
    except ImportError:
        print(f'{dep}: NOT INSTALLED')

try:
    import torch
    if torch.cuda.is_available():
        print(f'CUDA: {torch.version.cuda} (device: {torch.cuda.get_device_name(0)})')
    else:
        print('CUDA: not available (CPU only)')
except ImportError:
    print('CUDA: torch not installed')
"
```

Report the results and note any missing packages.

## Step 3 -- Installation instructions

If geoai is not installed, tell the user:

> **geoai is not installed.** Install it with:
>
> ```
> pip install geoai-py
> ```
>
> For GPU-accelerated AI models (object detection, segmentation), also install PyTorch:
>
> ```
> pip install torch torchvision
> ```
>
> For the full set of optional dependencies:
>
> ```
> pip install "geoai-py[extra]"
> ```

Stop after showing the instructions. Do not attempt to install automatically unless the user explicitly asks.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [opengeos](https://github.com/opengeos)
- **Source:** [opengeos/geoai-skills](https://github.com/opengeos/geoai-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-opengeos-geoai-skills-install-geoai
- Seller: https://agentstack.voostack.com/s/opengeos
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
