---
title: Installation
description: Let an AI agent install jev via the skills.sh skill, or install it from PGXN or source and load it into PostgreSQL 14–17.
order: 20
group: getting-started
---

Two ways in. Both need a server that [can run pgjev](/docs/getting-started/where-it-runs).

## With an AI agent

The easiest way, if you use Claude Code, Codex, Cursor or another agent that reads skills. The pg-jev repo ships a [skill](https://github.com/realZachi/pg-jev/tree/master/.agents/skills/pgjev) on [skills.sh](https://skills.sh); install it into your project and hand the rest to the agent:

```bash
npx skills add realZachi/pg-jev
```

Then say something like:

> Install pgjev on this server and set it up.

The skill walks the agent through the same steps as below: a preflight script that checks the PostgreSQL version, `plpython3u` and superuser access, `pgxn install jev` or `make install` against the right `pg_config`, `CREATE EXTENSION jev CASCADE`, placing the API key, and a smoke test that runs each function once. It also teaches the agent how to write good `jev()` queries afterwards ("find the tickets where the customer threatens to cancel"), and it links back to these docs. Every docs page is available as Markdown for agents, see [For agents](/docs/for-agents).

## From PGXN

The release is on the [PostgreSQL Extension Network](https://pgxn.org/dist/jev/). The client downloads it and runs `make install`, so you still need `make` and the server's `pg_config`, but no clone.

```bash
pip install pgxnclient        # once; also `pgxn-client` in Debian/Ubuntu and Homebrew
pgxn install jev
```

Use `pgxn install jev --pg_config=/path/to/pg_config` when the server's `pg_config` is not on `PATH`, and `sudo pgxn install jev` when the extension directory is not writable. Then continue with `CREATE EXTENSION` below.

## From source

Install with PGXS. You need `pg_config` on `PATH`.

```bash
git clone https://github.com/realZachi/pg-jev.git && cd pg-jev
make install
```

Point `make` at another `pg_config` if the one on `PATH` is not the server you want:

```bash
make install PG_CONFIG=/path/to/pg_config
```

## Create the extension

After either install path, as a superuser (`plpython3u` is untrusted):

```sql
CREATE EXTENSION jev CASCADE;
```

`CASCADE` matters. The control file requires `plpython3u`, but Postgres only creates a required extension for you when you say `CASCADE`; without it a fresh database fails with `required extension "plpython3u" is not installed`. Then check with `SELECT jev_version();`.

Next: [Quick start](/docs/getting-started/quick-start) to set an API key and run the first query. To skip a host install, use [Docker](/docs/getting-started/docker).
