Homebrew for Code Snippets
Run, search, and manage reusable code utilities from your terminal. Pipe data, chain commands, and work completely offline.
curl -fsSL https://tempercode.dev/install.sh | bashWorks on macOS, Linux, and WSL. Single binary, no dependencies.
Unix Native
Pipes, stdin, and chainable commands. Works the way you expect.
Offline First
Smart caching means full functionality without internet.
Zero Dependencies
Single binary, no runtime needed. Just download and run.
AI Ready
Built-in MCP server lets Claude search and run snippets.
See it in Action
Pipe data, run snippets, search the library — all from your terminal
Powerful Execution
Run JavaScript snippets with full async support and smart parameter handling
Run Snippets
Execute any snippet with named parameters
temper run slugify --text="Hello World"Pipeline Support
Pipe data directly into snippets
echo "hello world" | temper run title-caseEval Expressions
Run arbitrary JavaScript one-liners
temper eval "Math.PI.toFixed(4)"Async Support
Full async/await and Promise support
temper eval "await fetch('https://api.example.com').then(r => r.json())"Your Personal Snippet Collection
Clone public snippets, create your own, and build a personal library in ~/Snippets. Version them with git, sync across machines.
- Clone any public snippet to customize locally
- Create new snippets with frontmatter schema
- Edit in your favorite editor via $EDITOR
Integrations
Extend Temper into your favorite tools
AI Agents (MCP)
Claude & LLM integration
Built-in Model Context Protocol server lets AI agents discover, search, and execute snippets. Add to your Claude config:
Obsidian Plugin
Run snippets in your notes
Execute snippets directly in your markdown notes. Use code blocks to embed and run:
Command Reference
Everything you can do with Temper CLI
execution
run <slug>Execute a snippet with optional parameterseval <code>Evaluate JavaScript expression or codediscovery
search [query]Search snippets by name or descriptionlistList all available snippetsinfo <slug>Show detailed snippet informationopen <slug>Open snippet in browserlocal
clone <slug>Copy a public snippet to your local libraryadd <slug>Create a new local snippetedit [slug]Open snippet in $EDITORremove <slug>Delete a local snippetsystem
cache [list|clear]Manage the local snippet cacheconfigShow current configurationmcpStart MCP server for AI agentsInstallation
Multiple ways to get started
Quick Install
One command, auto-detects your platform
Download Binary
Download for your platform from GitHub releases
temper-darwin-x64temper-darwin-arm64temper-linux-x64Build from Source
Requires Bun runtime installed