Prerequisites
Before installing Amp, ensure you have:System Requirements
- Operating System: Linux (x86_64, aarch64) or macOS (Apple Silicon)
- Memory: Minimum 4GB RAM (8GB+ recommended for production)
- Storage: Object storage (S3, GCS, Azure) or local filesystem
PostgreSQL Setup
Amp uses PostgreSQL to store metadata about datasets, jobs, workers, and files. For development with Docker: The Amp repository includes adocker-compose.yml for local PostgreSQL:
postgresql://postgres:postgres@localhost:5432/amp.
For production:
Use a managed PostgreSQL service (AWS RDS, Google Cloud SQL, Azure Database) or self-hosted PostgreSQL cluster.
Solo mode (
ampd solo) can automatically manage a local PostgreSQL instance in .amp/metadb/ for zero-config development. See the Quickstart for details.Installation Methods
Choose the installation method that best fits your workflow:ampup
Recommended: Official version manager with automatic updates
Nix
Declarative installation for Nix users
From Source
Build manually with Cargo
Method 1: Install with ampup (Recommended)
ampup is the official version manager and installer for Amp. It handles installation, version switching, and updates.
Quick Install
ampup (the version manager) and the latest ampd and ampctl binaries.
You may need to restart your terminal or run
source ~/.zshenv (or your shell’s equivalent) to update your PATH.Custom Installation Options
The installer script accepts options for customization:--install-dir <DIR>: Install to a custom directory (default:$XDG_CONFIG_HOME/.ampor$HOME/.amp)--no-modify-path: Don’t automatically addampupto your PATH--no-install-latest: Don’t automatically install the latestampdversion
Managing Versions with ampup
Once installed, useampup to manage Amp versions:
Building from Source with ampup
ampup can also build Amp from source:
Directory Structure
ampup creates the following directory structure:
Update ampup Itself
To update theampup version manager:
Method 2: Install via Nix
For Nix users,ampd is available as a flake:
Run Without Installing
Install to Your Profile
Try Temporarily
NixOS Configuration
Add to your NixOS or home-manager configuration:Nix handles version management, so
ampup is not needed for Nix users.Method 3: Build from Source (Manual)
If you prefer to build manually without usingampup:
Requirements
- Rust toolchain (install from https://rustup.rs)
- Git
- Build dependencies (pkg-config, OpenSSL development headers)
Build Steps
Verify Installation
Verify your installation by checking the version:Environment Variables
Amp supports several environment variables for configuration:| Variable | Description | Example |
|---|---|---|
AMP_CONFIG | Path to configuration file | AMP_CONFIG=/etc/amp/config.toml |
AMP_LOG | Logging level | AMP_LOG=info (error, warn, info, debug, trace) |
AMP_NODE_ID | Worker node identifier | AMP_NODE_ID=worker-01 |
RUST_LOG | Fine-grained log filtering | RUST_LOG=ampd=debug,datafusion=warn |
AMP_CONFIG_* environment variables:
For nested configuration values, use double underscores (
__) to represent nesting. For example, metadata_db.url becomes AMP_CONFIG_METADATA_DB__URL.Troubleshooting
Command not found: ampup
Make sure theampup binary is in your PATH. Restart your terminal or run:
Download failed
- Check your internet connection
- Verify the release exists on GitHub: https://github.com/edgeandnode/amp/releases
- For private repos, ensure
GITHUB_TOKENis set correctly
Build from source requires Rust
If building from source, ensure you have the Rust toolchain:PostgreSQL connection errors
If you see database connection errors, verify PostgreSQL is running and accessible:Uninstalling
To uninstall Amp and ampup:~/.bashrc, ~/.zshenv, etc.).
Next Steps
Now that Amp is installed, proceed to the quickstart:Quickstart
Get querying blockchain data in under 5 minutes