---
title: "Clone and install"
description: "Clone langgraph-aerospike, start Aerospike in Docker, and install dependencies with uv."
---

# Clone and install

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

Clone the repository, start Aerospike, and install Python dependencies.

## Clone the repository

1.  Clone the `langgraph-aerospike` repository and change into it:
    
    Terminal window
    
    ```shell
    git clone https://github.com/aerospike/langgraph-aerospike.git
    
    cd langgraph-aerospike
    ```
    

## Start Aerospike Database

1.  Start Aerospike in Docker:
    
    Terminal window
    
    ```shell
    docker run -d --name aerospike -p 3000-3002:3000-3002 container.aerospike.com/aerospike/aerospike-server
    ```
    
2.  Verify the database is listening on port 3000:
    
    Terminal window
    
    ```shell
    nc -z localhost 3000 && echo 'Aerospike database is running.'
    ```
    
    Expected result
    
    ```plaintext
    Connection to localhost port 3000 [tcp/hbci] succeeded!
    
    Aerospike database is running.
    ```
    

::: tip
If a container named `aerospike` already exists from a previous run, remove it with `docker rm -f aerospike` before starting a new one.
:::

## Install dependencies

1.  From the repository root, install dependencies:
    
    Terminal window
    
    ```shell
    uv sync
    ```
    
    Expected result
    
    ```plaintext
    Using CPython 3.13.11 interpreter at: /opt/homebrew/opt/python@3.13/bin/python3.13
    
    Creating virtual environment at: .venv
    
    Resolved 85 packages in 18ms
    
          Built langgraph-checkpoint-aerospike @ file:///.../langgraph-checkpoint-aerospike
    
          Built langgraph-store-aerospike @ file:///.../langgraph-store-aerospike
    
    Prepared 10 packages in 920ms
    
    Installed 78 packages in 220ms
    
     + aerospike==19.2.2
    
     + langgraph-checkpoint-aerospike==0.2.1 (from file:///.../langgraph-checkpoint-aerospike)
    
     + langgraph-store-aerospike==0.2.1 (from file:///.../langgraph-store-aerospike)
    
     ...
    ```
    
2.  Verify the AerospikeSaver import:
    
    `AerospikeSaver` is the plugin LangGraph uses to save and load checkpoints in Aerospike.
    
    Terminal window
    
    ```shell
    uv run python -c "from langgraph.checkpoint.aerospike import AerospikeSaver; print('ok')"
    ```
    
    Expected result
    
    ```plaintext
    ok
    ```
    

::: undefined
-   I’ve cloned the langgraph-aerospike repository.
-   I’ve started Aerospike Database in Docker.
-   I’ve run uv sync from the repository root.
-   I’ve verified the AerospikeSaver import.
:::

[Previous  
Prerequisites](https://aerospike.com/docs/develop/langgraph-expiring-chat-sessions/step/1/part/0/prerequisites) [Next  
Configure TTL, start, and resume](https://aerospike.com/docs/develop/langgraph-expiring-chat-sessions/step/2/part/0/configure-ttl-and-start-session)