Skip to main content

replicant

One command from paper to running code.

Give replicant an arXiv ID, a PDF, or a GitHub URL and it clones the repo, resolves the dependencies with AI, and drops you into a working Docker environment — without touching your local Python.

pip install replicant
replicant setup 2103.00020   # CLIP — OpenAI's vision-language model
replicant shell              # enter the environment

Works on any ML paper. GPU papers spin up an EC2 instance automatically.

Prerequisites

  • Docker — must be installed and running
  • AWS account — for Bedrock (the AI backbone) and optionally EC2 (cloud/GPU builds)

On first run, replicant setup will walk you through AWS credentials and model selection. You can also run it explicitly:

replicant init

The wizard checks Docker, installs Terraform if needed, verifies AWS credentials, and tests Bedrock access. Takes about 2 minutes.

Install

pip install replicant

Requires Python 3.9+.

Quick Start

# From an arXiv ID
replicant setup 2301.07041

# From a PDF
replicant setup ./attention-is-all-you-need.pdf

# From a GitHub URL directly
replicant setup https://github.com/karpathy/nanoGPT

# Paper doesn't include a GitHub link? Specify it manually
replicant setup 2301.07041 --github https://github.com/author/repo

# Enter the environment
replicant shell

# Enter a specific environment by ID
replicant shell a3f2c1b0

Commands

Command Description
replicant init Run the first-time setup wizard
replicant init --reset Wipe config and re-run wizard
replicant setup <source> Set up from arXiv ID, PDF path, or GitHub URL
replicant setup <source> --cloud Build on AWS EC2 (GPU / large data)
replicant shell [env_id] Enter environment (latest if no ID given)
replicant list List all environments
replicant info [env_id] Show environment details
replicant delete <env_id> Remove environment and Docker image
replicant delete --all Remove all environments
replicant validate [env_id] Run post-build validation checks
replicant llm-config Show current Bedrock config and test connection
replicant cloud status List running cloud environments
replicant cloud teardown <env_id> Shut down EC2 instance
replicant benchmark <corpus> Batch-run across a CSV corpus of papers

Global flag: --verbose — stream build logs and debug output.

Cloud Execution

When a paper requires a GPU or downloads large datasets, replicant will prompt automatically:

GPU required. Run in the cloud? [y/N]:

Or pass --cloud to skip the prompt:

replicant setup 2103.00020 --cloud

This provisions a g4dn.xlarge EC2 instance (NVIDIA T4), builds the Docker image on it, pushes to ECR, and streams the shell over SSH. The instance runs until you explicitly tear it down:

replicant cloud teardown <env_id>

Cloud builds require Terraform — the replicant init wizard installs it automatically on macOS and Linux.

How It Works

replicant analyzes the repo and paper to build an environment spec, then generates a Dockerfile:

  1. Detect — searches the repo for Dockerfile, environment.yml, requirements.txt, setup.py, pyproject.toml, Pipfile (3 levels deep, monorepo-aware)
  2. Resolve — Claude reads the paper and repo together to fill in missing dependencies, fix version conflicts, and pin everything correctly
  3. Validate — checks every package name against PyPI before building; phantoms are re-resolved automatically
  4. Build — Docker image is built locally or on EC2; one-shot retry on failure re-resolves with the build error as context
  5. Shell — drops you into /workspace with the cloned code mounted

All data lives under ~/.replicant/. Set REPLICANT_HOME to override.

Docs

License

GNU Affero General Public License v3.0

Metadata

Release files for replicant-ai 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for replicant-ai 0.1.1
File Size Uploaded Provenance Actions
replicant_ai-0.1.1.tar.gz 82.5 kB With provenance Details for replicant_ai-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for replicant-ai 0.1.1
File Interpreter ABI Platform Actions
replicant_ai-0.1.1-py3-none-any.whl Python 3 none any Details for replicant_ai-0.1.1-py3-none-any.whl

Total release size: 159.2 kB

Release files / replicant_ai-0.1.1.tar.gz

Download URL replicant_ai-0.1.1.tar.gz
Size 82.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2338e0dd82218e18ba89a92a17dd135550a9c92afeaef2d50beded8845857aeb
BLAKE2b-256 checksum
How to use checksums
2a7ccbe2688614e85b7b77dd6b891cd47f532ff507dfa04858275250ff5907bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.

Transparency log

Release files / replicant_ai-0.1.1-py3-none-any.whl

Download URL replicant_ai-0.1.1-py3-none-any.whl
Size 76.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a1459aaffd76a561a9f2279c71dc8f2462c18106e28442c68a24d7fe8bf2493
BLAKE2b-256 checksum
How to use checksums
6e2e6f09703f97f466d4fe228f45667287b68880c071b8063c87d6b144c0b069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.

Transparency log

Security for replicant-ai 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for replicant_ai-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page