# socai
**English** · [简体中文](README.zh-CN.md) · [日本語](README.ja.md) · [한국어](README.ko.md)
**A local agent that actually reads social media.**
Not a scraper. Not a reverse-engineered API. socai lives in the Chrome you already use, opens the real page, and comes back with results you want.
Xiaohongshu · TikTok / Douyin · Instagram · LinkedIn
[Website](https://socai.io/?utm_source=github&utm_medium=readme) · [Download](#desktop-app) · [Discord](https://discord.gg/CpQdA7bwt8) · [Quick start](#quick-start) · [Development](DEVELOPMENT.md)
[](https://github.com/socai-io/socai/releases/latest)
[](https://discord.gg/CpQdA7bwt8)
[](#desktop-app)
[](LICENSE)
Social platforms are where the real conversations happen. Public APIs hide them. Scrapers get you banned. socai takes the third path: it drives your signed-in Chrome the way a researcher would — search, open posts, expand comments, read profiles, OCR images, transcribe video — then keeps the artifacts.
Read-only by design. It does not publish, like, follow, or comment.
https://github.com/user-attachments/assets/8aebcded-f365-4f12-b9c4-102cc1fa964d
## Quick start
### Desktop app
Use the desktop app to enter research tasks without setting up a command-line environment. It is available for macOS and Windows:
- [Download for macOS](https://github.com/socai-io/socai/releases/latest/download/socai-macos-universal.dmg)
- [Download for Windows](https://github.com/socai-io/socai/releases/latest/download/socai-windows-x86_64-setup.exe)
After installation, follow the in-app steps to connect Chrome and enter a task such as:
> Compare how people discuss sugar-free tea on RedNote, Douyin, and Instagram. Identify recurring purchase criteria and cite specific posts, videos, comments, and replies.
The first connection to your existing Chrome requires enabling remote debugging and confirming the browser permission prompt. See the [Connect Chrome guide](https://socai.io/connect).
The desktop app keeps task history and artifacts. You can preview or download reports, spreadsheets, images, and other deliverables, or export results to a Feishu document or group chat.
### Command line
The CLI is designed for Claude Code, Codex, and other agents, as well as users who need structured data or scripted workflows.
macOS:
```bash
curl -fsSL https://github.com/socai-io/socai/releases/latest/download/install.sh | sh
```
Windows PowerShell:
```powershell
$installer = Join-Path $env:TEMP 'socai-install.ps1'; Invoke-WebRequest -UseBasicParsing https://github.com/socai-io/socai/releases/latest/download/install.ps1 -OutFile $installer; Unblock-File $installer; & $installer
```
The installers download and verify the release archive, install socai at `~/.socai/bin/socai` on macOS or `%USERPROFILE%\.socai\bin\socai.exe` on Windows, and configure or explain the PATH update.
Run a structured platform search:
```bash
socai xhs search "beginner camping gear mistakes" --num-notes 10 --num-comments 8 --pretty
socai dy search "beginner camping gear" --num 20
socai tiktok search "beginner camping gear" --num 20 --pretty
socai instagram search "beginner camping gear" --num 20 --pretty
socai linkedin search "product designer" --type people --num 20 --pretty
```
Run `socai` without a subcommand to ask the agent for cross-platform research across the same platforms.
If a prebuilt binary is unavailable for your platform, or you need a source build for development, use Cargo:
```bash
git clone https://github.com/socai-io/socai.git
cd socai
cargo install --path cli --force --locked
cargo install --path asr --force --locked
```
The second command installs the local Whisper helper next to `socai`; it is
required when unpaid or offline transcription routes to the bundled model.
### Terminal interface
After installing the CLI, run `socai` without a subcommand to open the terminal interface:
```bash
socai
```
## Choose an interface
| Interface | Best for | Start with |
| --- | --- | --- |
| Desktop app | Natural-language tasks, task history, and artifact preview or download | Install the macOS or Windows app |
| CLI | Agent calls, scripts, and structured JSON | Run `socai xhs ...`, `socai dy ...`, `socai tiktok ...`, `socai instagram ...`, or `socai linkedin ...` |
| Terminal interface | Manually running consecutive tasks in a terminal | Run `socai` |
All three interfaces share the same browser connection, site capabilities, and run-record core.
## Supported platforms
| Platform | Research capabilities | Access |
| --- | --- | --- |
| RedNote (Xiaohongshu) | Search, authors, posts, comments and replies, media download, OCR, and transcription | Agent and structured CLI |
| Douyin | Search, video details, authors, comments and replies, and media artifacts | Agent and structured CLI |
| TikTok | Search, video details, author profiles, comments and replies, and video download | Agent and structured CLI |
| Instagram | Keyword search, profiles, posts, reels, comments and replies, and playable video download | Agent and structured CLI |
| LinkedIn | People, company, and content search; profiles, experience, relationships, posts, and comments | Agent and structured CLI |
All integrations are read-only. socai does not follow, connect, publish, like, react, comment, reply, or send messages on your behalf.
## Platform command reference
### RedNote (Xiaohongshu)
#### Search and read posts
```bash
socai xhs search "content marketing ideas" \
--num-notes 30 \
--num-comments 20 \
--filter publish_time=一周内 \
--filter sort=最多评论 \
--download-media \
--ocr \
--pretty
```
`search` opens result posts and reads their bodies and comments. Add `--preview` to return only result-card metadata such as titles, covers, and engagement counts without opening post details.
#### Read an author and their posts
```bash
socai xhs author