Generate professional presentations with Gamma AI from your agent. Describe what you want and get a polished deck with direct PDF/PPTX download — no Gamma account needed.
1. BYOK — Bring your own Gamma API key:
export GAMMA_API_KEY=sk-gamma-...2. Proxy — Route through a managed proxy (no Gamma key needed):
export GAMMA_PROXY_URL=http://your-proxy:8318
export GAMMA_PROXY_KEY=your-proxy-key3. Managed Config — Shared key or proxy via config file:
// ~/.gamma/config.json — direct key
{"api_key": "sk-gamma-..."}
// ~/.gamma/config.json — proxy mode
{"proxy_url": "http://your-proxy:8318", "proxy_key": "your-proxy-key"}# Simple topic → PDF
bun run generate.ts --topic "Q2 Product Roadmap" --format pdf --output ./roadmap.pdf
# Full content with exact slide control (30+ slides)
bun run generate.ts --content-file ./outline.md \
--text-mode preserve --card-split inputTextBreaks \
--format pptx --output ./presentation.pptx| Flag | Values | Default | Description |
|---|---|---|---|
--topic |
string | — | Short topic description |
--content |
string | — | Full content inline |
--content-file |
path | — | Read content from file |
--format |
pdf, pptx | Export format | |
--pages |
number | — | Target slide count |
--output |
path | /tmp/gamma-output.{ext} | Output file path |
--text-mode |
generate, condense, preserve | generate | How Gamma treats your text |
--card-split |
auto, inputTextBreaks | auto | How to split into slides |
- generate — Gamma rewrites and expands (best for topics/outlines)
- condense — Gamma shortens to fit slides
- preserve — Gamma keeps your text as-is (best for pre-written content)
For 20+ slides with exact content: --text-mode preserve --card-split inputTextBreaks
Run a Bun sidecar that holds your Gamma API key and serves whitelisted users:
GAMMA_PROXY_AUTH_KEY=your-secret-key bun run gamma-proxy.ts
# Runs on port 8318Whitelist additional keys in ~/.gamma/whitelist.json:
["key-for-friend-1", "key-for-teammate-2"]ln -s /path/to/gamma-skill ~/.claude/skills/gammacp SKILL.md ~/.openclaw/skills/gamma/SKILL.md- Skill receives topic or content from the user
- Calls Gamma API with
exportAsparameter for direct download - Polls until generation completes (~30-120s)
- Downloads PDF/PPTX directly via
exportUrl - Returns the file path to the user
~15-136 credits per deck depending on size. Skill owner covers generation costs.
MIT