arti
БесплатноБез исполняемых скриптовНе проверенArti — pure-Rust implementation of the Tor anonymity network, by Tor Project. Embeddable Tor client (no system Tor daemon needed), provides SOCKS proxy and…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Arti — Tor in Rust
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:arti.
Why Arti
Arti is the next-generation Tor implementation, written in Rust. Replaces the C tor daemon for embedded use cases. Since v1.2.0+ (2024) it's stable enough for production embed in apps.
| Feature | Arti | C tor (legacy) |
|---|---|---|
| Language | Rust (memory safe) | C |
| Embedding API | ✅ Native (arti-client) |
❌ Requires running daemon |
| Async | ✅ Built on Tokio/async-std | Manual threading |
| Memory safety | ✅ | Periodic CVEs |
| Onion services | ✅ Stable since 1.2 | Original support |
| Bridges (obfs4, snowflake) | ✅ Plugin system | ✅ Mature |
| iOS/Android support | ✅ Cross-compile + UniFFI bindings | Hard |
| HSv2 (deprecated) | ❌ | Removed |
For BHODL-style wallets: ideal — embed Tor without bundling a binary or requiring the user to install Tor.
Setup
[dependencies]
arti-client = { version = "0.27", features = ["tokio", "rustls"] }
tor-rtcompat = "0.27"
tokio = { version = "1", features = ["full"] }
Features:
tokio(default) orasync-stdruntimerustls(default) ornative-tlsfor TLSbridge-client— connect via bridges (obfs4, snowflake)pt-client— pluggable transportsonion-service-client— connect to .onion (default)onion-service-service— host .onion (more advanced)
Hello World — TCP Connection Through Tor
use arti_client::{TorClient, TorClientConfig};
use tor_rtcompat::PreferredRuntime;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = TorClientConfig::default();
let runtime = PreferredRuntime::current()?;
println!("Bootstrapping Tor (this can take a minute)...");
let tor = TorClient::with_runtime(runtime)
.config(config)
.create_bootstrapped()
.await?;
println!("Connected to Tor network!");
// Connect to a clearnet site through Tor
let mut stream = tor.connect(("check.torproject.org", 80)).await?;
// Or to a .onion v3 address
let mut onion_stream = tor.connect((
"duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion",
80,
)).await?;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
onion_stream.write_all(b"GET / HTTP/1.0\r\nHost: duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion\r\n\r\n").await?;
let mut response = String::new();
onion_stream.read_to_string(&mut response).await?;
println!("{}", response);
Ok(())
}
First-time bootstrap downloads the Tor consensus (~5-10 MB). Subsequent runs use cached data (faster).
TorClient with HTTP
For HTTP through Tor, layer with reqwest or hyper:
[dependencies]
arti-client = { version = "0.27", features = ["tokio", "rustls"] }
arti-hyper = "0.27"
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
hyper = "1"
use arti_client::TorClient;
use arti_hyper::ArtiHttpConnector;
use hyper::Client;
use tls_api::{TlsConnector, TlsConnectorBuilder};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let tor = TorClient::create_bootstrapped(Default::default()).await?;
let tls_connector = tls_api_native_tls::TlsConnector::builder()?.build()?;
let connector = ArtiHttpConnector::new(tor, tls_connector);
let http: Client<_, hyper::Body> = Client::builder().build(connector);
let resp = http
.get("https://check.torproject.org".parse()?)
.await?;
println!("Status: {}", resp.status());
Ok(())
}
Persistent Configuration
For production: persist Tor state to disk (cached descriptors, circuits) — much faster restarts.
use arti_client::{TorClient, TorClientConfig};
use std::path::PathBuf;
let mut config = TorClientConfig::builder();
config.storage()
.cache_dir(PathBuf::from("/path/to/cache").into())
.state_dir(PathBuf::from("/path/to/state").into());
let config = config.build()?;
let tor = TorClient::create_bootstrapped(config).await?;
State dir holds:
- Cached relay descriptors
- Onion service descriptor cache
- Guard nodes (don't change between sessions)
For mobile apps: use platform's app-private dir (filesDir on Android, Documents on iOS).
Bridges (Obfuscated Tor)
For users in censored networks. Bridges hide that you're using Tor.
[dependencies]
arti-client = { version = "0.27", features = ["tokio", "rustls", "bridge-client", "pt-client"] }
tor-pt-client = "0.27"
use arti_client::config::pt::TransportConfigBuilder;
use arti_client::config::BridgeConfigBuilder;
let mut config_builder = TorClientConfig::builder();
// Add a bridge (example obfs4)
let bridge: BridgeConfigBuilder = "obfs4 IP:PORT FINGERPRINT cert=... iat-mode=0"
.parse()?;
config_builder.bridges().bridges().push(bridge);
// Configure obfs4 transport binary
let mut transport = TransportConfigBuilder::default();
transport.protocols(vec!["obfs4".parse()?]);
tra
Установить arti в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл arti?
Arti — pure-Rust implementation of the Tor anonymity network, by Tor Project. Embeddable Tor client (no system Tor daemon needed), provides SOCKS proxy and programmatic API for connecting to .onion services or routing clearnet traffic through Tor. Used by privacy-respecting wallets (BHODL-style), messenger apps, and any Rust app needing anonymity. Ships as library (arti-client crate) or standalone CLI. USE WHEN: user mentions "arti", "Tor in Rust", "embedded Tor", "arti-client", "Tor circuit Rust", "onion service Rust", "TorClient", "BridgeConfig", "PreferredRuntime" DO NOT USE FOR: Bitcoin Core + Tor configuration - use `bitcoin/privacy/tor` DO NOT USE FOR: Browsing via Tor Browser - end-user tool, not dev DO NOT USE FOR: TLS configuration - use `network/rustls`
Как установить скилл arti?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл arti запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic