foleykit — Free Open-Source Procedural Foley & SFX Synthesizer CLI for AI Agents
foleykit — Blipsmith for AI Agents: Synthesize game-ready sound effects from one JSON spec — footsteps, doors, impacts, whooshes — with 13.3x fewer tokens than hand-written synthesis code. 100% procedural, deterministic, offline and free.
Install in one minute — see the install commands below. Source and README: github.com/creatorops-studio/foleykit. 100% local — no network calls at all in the free build.
Procedural, not AI-generated, stated up front: foleykit synthesizes every sound from math in Rust — oscillators, filtered noise, envelopes. No recorded samples, no sample library, no model call. The sounds are deterministic and free, but they sound synthesized — good for UI clicks, retro/8-bit games and stylised SFX, weaker for realistic footsteps and ambience than a recorded or AI-generated sound.
One JSON spec, one valid WAV
Footsteps (wood, concrete, gravel, carpet), door creaks and slams, impacts, whooshes, rain, rumble, UI clicks, dings — declared in one JSON file, rendered in one command. No Python, no numpy, no DAW, no downloads.
# 1. See the 10 built-in presets
foleykit list
# 2. Validate a spec — the validator tells you exactly what's wrong
foleykit validate examples/footstep.json
# 3. Render it — a valid 16-bit PCM mono WAV at 44.1 kHz
foleykit synth examples/footstep.json -o footstep.wav
# 4. Or generate one sound directly, and batch a whole set
foleykit generate whoosh --param direction=up -o whoosh.wav
foleykit batch examples/batch.json -o sfx/
The whole spec for a wooden footstep is 21 tokens:
{"preset": "footstep", "seed": 42, "params": {"surface": "wood", "intensity": 0.7}}
Deterministic by design
Same spec + same seed renders byte-identical audio, every time. Change the seed for a variation — no re-recording, no re-rolling a model. A validator tells the agent exactly what's wrong with a spec (unknown preset, out-of-range parameter) before anything is rendered.
Install in one minute
Install straight from GitHub with a Rust toolchain (cargo) — the crate is not on crates.io yet:
cargo install --git https://github.com/creatorops-studio/foleykit
Prefer a ready-made binary? Download the Release v0.1.0 binary (1,023,512 B) from github.com/creatorops-studio/foleykit/releases/tag/v0.1.0.
Measured numbers, not marketing
Measured 5 December 2026 on Linux x86_64, release build, with foleykit benchmark. Timings are the range across 4 separate benchmark invocations (3 runs each, the last on the final release binary after the security fixes); they bounce run to run on a shared VM — the token ratio does not. Tokens ≈ characters / 4 (standard approximation); the Python script is the canonical numpy script an agent would write for the same wooden footstep, kept verbatim in src/bench.rs so the comparison is reproducible. Every WAV was verified end to end: read back with hound, 16-bit PCM mono 44.1 kHz, peak ≤ −1 dBFS, no clipping.
| What was measured | Result |
|---|---|
| Token cost for one wooden footstep — spec JSON | 21 tokens vs 279 tokens (hand-written numpy script) — 13.3× saving |
| Render click (0.06 s) | 0.06–0.12 ms |
| Render pop (0.09 s) | 0.09–0.17 ms |
| Render ding (1.20 s) | 3.14–4.79 ms |
| Render footstep (0.18 s) | 0.22–0.43 ms |
| Render door-creak (0.70 s) | 1.93–2.22 ms |
| Render door-slam (0.40 s) | 0.37–0.52 ms |
| Render impact (0.50 s) | 0.46–0.64 ms |
| Render whoosh (0.60 s) | 1.26–1.74 ms |
| Render rain (2.00 s) | 1.00–1.70 ms |
| Render rumble (2.50 s) | 2.09–3.44 ms |
| Peak RSS | 3,936 KB (~3.8 MB) |
| WAV output | 16-bit PCM mono 44.1 kHz, peak-normalised to −1 dBFS, no clipping |
| Tests | 51 green |
| Binary size (release, stripped) | 1,023,512 B (0.98 MiB) |
Built for AI agents first
MCP server with four tools (list_presets, synthesize, validate_spec, batch_synthesize). Add this to your MCP config — no Python, no browser, no cloud:
{
"mcpServers": {
"foleykit": {
"command": "foleykit",
"args": ["mcp"]
}
}
}
Example agent flow: list_presets → write a spec (21 tokens, measured) → validate_spec → synthesize. Compare that with the agent hand-writing a numpy synthesis script (279 tokens, measured — plus debug loops) — see the repo README for the full benchmark.
Built with: Rust, a single static binary, and an MCP server — clap + hound + serde + serde_json.
Procedural, not AI-generated — stated up front
Every sound is synthesized from math in Rust: oscillators, filtered noise, envelopes. No recorded samples, no sample library, no model call. The sounds are deterministic and free, but they sound synthesized — good for UI clicks, retro/8-bit games and stylised SFX, weaker for realistic footsteps and ambience than a recorded or AI-generated sound. Blipsmith already occupies the AI-generated SFX + MCP slot, and we say so plainly.
Free, offline, MIT
Single static binary, no cloud, no account. Free core is 80% of a real SFX tool; Pro (coming later, $10–29/month) adds preset packs, layered sound design, long ambience beds, stereo/FLAC export and a Cloud API.
Frequently asked questions
Is foleykit really free?
Yes — MIT licensed, free core forever. Pro is a separate paid tier for preset packs/layers/API features.
Does it work offline?
Yes. 100% local; no network calls at all in the free build.
Are the sounds recorded samples?
No — 100% procedural synthesis from math. No samples, no downloads, no licensing risk.
Do the sounds sound realistic?
Honestly: no. They sound synthesized — great for UI/retro/stylised SFX, weaker for realistic Foley than recorded or AI-generated audio.
How do I use it with Claude Code?
Add the MCP server block from the repo README to your MCP config; the agent gets list_presets, synthesize, validate_spec, batch_synthesize.
What formats does it output?
16-bit PCM mono WAV at 44.1 kHz, peak-normalised to −1 dBFS so nothing clips.
How do I install it?
Run cargo install --git https://github.com/creatorops-studio/foleykit (needs a Rust toolchain), or download the Release v0.1.0 binary (1,023,512 B) from the v0.1.0 release. The crate is not on crates.io yet.
Synthesize game-ready sound effects in one command.
Free, offline, MIT licensed — get the source on GitHub. 100% procedural synthesis: no recorded samples, no downloads, no model call. The sounds are synthesized, not recorded — great for UI, retro and stylised SFX, not a replacement for realistic Foley.