One command from research paper to running code
Project description
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:
- Detect — searches the repo for
Dockerfile,environment.yml,requirements.txt,setup.py,pyproject.toml,Pipfile(3 levels deep, monorepo-aware) - Resolve — Claude reads the paper and repo together to fill in missing dependencies, fix version conflicts, and pin everything correctly
- Validate — checks every package name against PyPI before building; phantoms are re-resolved automatically
- Build — Docker image is built locally or on EC2; one-shot retry on failure re-resolves with the build error as context
- Shell — drops you into
/workspacewith the cloned code mounted
All data lives under ~/.replicant/. Set REPLICANT_HOME to override.
Docs
- How it works — pipeline, AI dependency resolution, retry logic
- Supported environments — env file types, priority order, Dockerfile templates
- Troubleshooting — common failures and fixes
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replicant_ai-0.1.1.tar.gz.
File metadata
- Download URL: replicant_ai-0.1.1.tar.gz
- Upload date:
- Size: 82.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2338e0dd82218e18ba89a92a17dd135550a9c92afeaef2d50beded8845857aeb
|
|
| MD5 |
5aa0c3c492918bc1d1233ece134a3587
|
|
| BLAKE2b-256 |
2a7ccbe2688614e85b7b77dd6b891cd47f532ff507dfa04858275250ff5907bd
|
Provenance
The following attestation bundles were made for replicant_ai-0.1.1.tar.gz:
Publisher:
publish.yml on oorjitchowdhary/replicant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
replicant_ai-0.1.1.tar.gz -
Subject digest:
2338e0dd82218e18ba89a92a17dd135550a9c92afeaef2d50beded8845857aeb - Sigstore transparency entry: 1724808629
- Sigstore integration time:
-
Permalink:
oorjitchowdhary/replicant@ca6a2c941d64582f4bf078ef89dae687dfbb11c7 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/oorjitchowdhary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca6a2c941d64582f4bf078ef89dae687dfbb11c7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file replicant_ai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: replicant_ai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 76.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a1459aaffd76a561a9f2279c71dc8f2462c18106e28442c68a24d7fe8bf2493
|
|
| MD5 |
0d6000de79adf76f3df575aa8e181a16
|
|
| BLAKE2b-256 |
6e2e6f09703f97f466d4fe228f45667287b68880c071b8063c87d6b144c0b069
|
Provenance
The following attestation bundles were made for replicant_ai-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on oorjitchowdhary/replicant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
replicant_ai-0.1.1-py3-none-any.whl -
Subject digest:
3a1459aaffd76a561a9f2279c71dc8f2462c18106e28442c68a24d7fe8bf2493 - Sigstore transparency entry: 1724808736
- Sigstore integration time:
-
Permalink:
oorjitchowdhary/replicant@ca6a2c941d64582f4bf078ef89dae687dfbb11c7 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/oorjitchowdhary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca6a2c941d64582f4bf078ef89dae687dfbb11c7 -
Trigger Event:
release
-
Statement type: