Skip to main content
CasperAC Logo

CasperAC

Advanced Dual-Layer Network Anonymization CLI

Build Status PyPI Version Python Versions License: MIT


CasperAC is an advanced, automated network anonymization CLI tool designed to wrap any terminal command (like curl, nmap, or wget) in a highly secure Dual-Layer (WARP + Tor) tunnel. It features a true Zero-Config Auto-Deploy engine that installs and configures its own VPN and proxy infrastructure automatically.

🌟 The Dual-Layer Privacy Architecture

CasperAC employs a state-of-the-art dual-layer network stack to ensure maximum privacy and prevent Deep Packet Inspection (DPI):

  1. Layer 1: Cloudflare WARP (WireGuard VPN)
    • All your system traffic is encrypted and sent to Cloudflare's edge network.
    • Why? Your local Internet Service Provider (ISP) or network administrator cannot see that you are using Tor. They only see a standard Cloudflare connection.
  2. Layer 2: The Onion Router (Tor)
    • Inside the WARP tunnel, CasperAC routes your specific terminal command through the Tor network.
    • Why? The Tor Entry Node sees Cloudflare's IP instead of your real IP. Finally, the target server sees a random Tor Exit Node IP.

Result: Your ISP doesn't know you use Tor, the Tor network doesn't know your real IP, and the target server doesn't know who you are.

📊 Network Data Flow (Dual-Layer Architecture)

sequenceDiagram
    autonumber
    
    actor User as Your Machine
    participant ISP as Your Local ISP
    participant WARP as Cloudflare Edge (Layer 1)
    participant TorEntry as Tor Entry Node
    participant TorMiddle as Tor Middle Relay
    participant TorExit as Tor Exit Node
    participant Target as Target Server (e.g. github.com)

    User->>ISP: Encrypted WireGuard Packet (Dest: Cloudflare)
    note left of ISP: Your ISP only sees a secure<br/>connection to Cloudflare.
    
    ISP->>WARP: Forwards data to Cloudflare Edge
    note over WARP,TorEntry: WARP (Layer 1) hides your<br/>Real IP from the Tor Network.
    
    WARP->>TorEntry: Enters Tor Network (Source IP: Cloudflare)
    note right of TorEntry: Tor Entry Node thinks the traffic<br/>is originating from Cloudflare.
    
    TorEntry->>TorMiddle: 3-Layer Encrypted (Onion) Data
    TorMiddle->>TorExit: Hops within the Tor Network
    
    note over TorExit,Target: Tor (Layer 2) hides your identity<br/>from the Target Server.
    TorExit->>Target: Connects to Target (Source IP: Tor Exit Node)
    
    note right of Target: The target server only sees the<br/>random Tor Exit Node IP.
    
    Target-->>TorExit: Returns Response
    TorExit-->>TorMiddle: 
    TorMiddle-->>TorEntry: 
    TorEntry-->>WARP: 
    WARP-->>ISP: 
    ISP-->>User: Terminal Output (cURL/Wget) Success

🔍 Why is this better than just using Tor?

  1. Blind ISP (Layer 1): If you only use Tor, your Internet Service Provider (ISP) knows you are connecting to the Tor network. With CasperAC, your ISP only sees standard, encrypted Cloudflare WARP traffic.
  2. Blind Tor Entry Node (Layer 2): In a normal Tor setup, the first node (Entry Node) knows your real home IP address. With CasperAC, the Tor network thinks you are connecting from a Cloudflare data center. Your real IP never touches the Tor network.
  3. Blind Target Server: The destination server only sees a random Tor Exit Node IP and a spoofed User-Agent (thanks to the Anti-Detect Engine), keeping you completely anonymous.

✨ Features

  • 🚀 Zero-Config Auto-Deploy: If Tor or Cloudflare WARP are not installed, CasperAC automatically downloads, installs, and configures them for you via system package managers (Homebrew/APT).
  • 🛡️ Dual-Layer Security: Combines Cloudflare WARP with Tor for ISP-blind, exit-node-anonymized traffic.
  • 🌍 Global VPN Mode: Instantly route your entire operating system (all browsers and apps) through the Tor network with a single command (casperac global-on).
  • 🕵️‍♂️ Anti-Detect Engine: Intelligently evades bot-protection (like Cloudflare) by dynamically injecting realistic browser fingerprints (User-Agents, sec-ch-ua, Accept-Language) into terminal commands.
  • 🔄 Dynamic IP Rotation: Effortlessly renew your Tor circuit with a single command to get a fresh IP address.
  • 💻 Environment Management: Easily export or unset proxy environment variables for your current active shell session.

🚀 Usage

1. Status Check & Auto-Deploy

Check your network status. If Tor or WARP is missing, CasperAC will auto-deploy them.

casperac status

2. Command Proxying (Smart Wrapper)

Wrap any terminal command to automatically route it through Tor, with dynamic browser fingerprint injection.

casperac run -- curl ifconfig.me

Spoof Mobile Identity

casperac run --mobile -- curl ifconfig.me

3. Global VPN Mode (System-wide Tor)

Route your entire operating system (Safari, Chrome, Spotify, OS updates) through the Tor network. (Currently supported on macOS and Linux GNOME desktops).

casperac global-on

To disable and restore normal internet:

casperac global-off

4. Circuit Renewal

casperac renew

🚀 Installation

Prerequisites

  • Python 3.8+
  • Tor daemon installed and running locally on port 9050. Control port on 9051.
  • Cloudflare WARP CLI (optional, but recommended for the dual-layer approach).

Setup via PyPI (Recommended)

pip install casperac

Setup from Source

git clone https://github.com/cagritas/casperac.git
cd casperac
pip install -e .

💻 Usage

# Check the status of your proxies
casperac status

# Run a specific command through the proxy chain
casperac run -- curl -I https://api.github.com/user

# Renew your Tor exit node
casperac renew

# Source proxy variables into your active shell session
eval $(casperac env-on)

# Revert proxy variables
eval $(casperac env-off)

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check issues page. You can also take a look at the contributing guide.

📝 License

Copyright © 2024. This project is MIT licensed.

Release files for casperac 0.3.4

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

Source distribution (sdist)

Source distribution for casperac 0.3.4
File Size Uploaded
casperac-0.3.4.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for casperac 0.3.4
File Interpreter ABI Platform
casperac-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 34.2 kB

Release files / casperac-0.3.4.tar.gz

Download URL casperac-0.3.4.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
694bf474b76bb93d2a22547847e4248218afe8b7b239dec76723ba1fce0c14d6
BLAKE2b-256 checksum
How to use checksums
7ab2029d73fcfd5ae1705e987c6fee31a7519c4f68eee3c925054518a795e4db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 3, 2026.

Transparency log

Release files / casperac-0.3.4-py3-none-any.whl

Download URL casperac-0.3.4-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
759cff7f1445c0ab3361e82adce9fd9713d276bd1c1df0f1181325ab65e7e961
BLAKE2b-256 checksum
How to use checksums
8e9d58423fe7a91d9f0666ae0d7dc0481227a800b1eefbbf252f5b01590df955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

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