
Xpai Doubao Web
This wraps Doubao Web's image and text generation in a Playwright-driven CLI that reuses your browser cookies, so you skip manual logins. You pass a prompt, it opens a headless browser, scrapes the result, and saves images or JSON. The preset system is handy if you're batch-generating social media assets with fixed aspect ratios like 小红书 covers. Session support lets you chain multi-turn conversations. It's reverse-engineered web automation, which means it'll break when Doubao changes their DOM, but for now it's a pragmatic way to script image jobs without an official API.
- skills.sh installs
- 275
- GitHub stars
- 1
- last updated
- Jun 3, 2026
Install
$ npx -y skills add hunduncn/xpai-doubao-web --skill xpai-doubao-web --agent claude-codeInstalls into .claude/skills of the current project.
Files
XPAI Doubao Web
Overview
Use this skill to generate images or text from Doubao Web by reusing browser login cookies. It provides a CLI wrapper with prompt files, optional reference images, presets, sessions, and JSON output.
Script Directory
All scripts are located in the scripts/ subdirectory of this skill.
Script reference:
scripts/main.ts: CLI entry point (image/text)scripts/doubao-webapi/*: TypeScript client and helpers
Consent Check (required before first use)
This skill relies on reverse-engineered web behavior and will access/store your Doubao Web cookies. Obtain explicit user consent before running automation.
Consent file locations:
- macOS:
~/Library/Application Support/xpai-skills/doubao-web/consent.json - Linux:
~/.local/share/xpai-skills/doubao-web/consent.json - Windows:
%APPDATA%\\xpai-skills\\doubao-web\\consent.json
Consent file format:
{"version":1,"accepted":true,"acceptedAt":"<ISO>","disclaimerVersion":"1.0"}
Preferences (EXTEND.md)
Check for optional EXTEND.md overrides in this order:
# Project-level first
test -f .xpai-skills/xpai-doubao-web/EXTEND.md && echo "project"
Sponsors
Details
- Repository
- github.com/hunduncn/xpai-doubao-web
- First seen
- Jun 3, 2026