amagi
Chinese README: README.zh-CN.md
amagi is a Rust SDK, CLI, and JSON Web API service for multi-platform social web adapters.
What It Does
- Run CLI tasks against Bilibili, Douyin, Kuaishou, Twitter/X, and Xiaohongshu
- Start a local JSON Web API with
amagi serve - Reuse the same capability as a Rust crate with feature flags
Quick Start
Install the latest release:
Linux/macOS:
|
PowerShell:
irm https://raw.githubusercontent.com/bandange/amagi-rs/main/scripts/install.ps1 | iex
Verify:
Common examples:
For repository install, uninstall, and shell integration details, see the installation guide.
Run From Source
If you do not want to install the binary, run it directly in the repository. This requires a local Rust toolchain.
Configuration
Configuration is loaded in this order:
- the user-level dotenv file
- the current directory
.env
User-level dotenv path:
- Linux/macOS:
~/.config/amagi/.env - Windows:
%APPDATA%\\amagi\\.env
Useful files and variables:
.env.exampleAMAGI_USER_ENV_FILEAMAGI_DOUYIN_COOKIEAMAGI_BILIBILI_COOKIEAMAGI_KUAISHOU_COOKIEAMAGI_TWITTER_COOKIEAMAGI_XIAOHONGSHU_COOKIEAMAGI_HOSTAMAGI_PORT
For the full environment and CLI option list, see the CLI reference.
Crate Features
Default features: client, cli, server
Optional features:
catalog: static catalog and route metadata onlyclient: Rust client types and upstream fetcherscli: command-line runtimeserver: Axum-based HTTP service
Example:
= { = "0.1.2", = false, = ["client"] }
Documentation
- Installation guide: docs/installation/README.md
- CLI reference: docs/reference/cli-reference.md
- SDK reference: docs/reference/sdk-reference.md
- Web API reference: docs/reference/web-api-reference.md
- API catalog reference: docs/reference/api-catalog-reference.md
Chinese documentation:
- Installation guide: docs/installation/README.zh-CN.md
- CLI reference: docs/reference/cli-reference.zh-CN.md
- SDK reference: docs/reference/sdk-reference.zh-CN.md
- Web API reference: docs/reference/web-api-reference.zh-CN.md
- API catalog reference: docs/reference/api-catalog-reference.zh-CN.md