Command Line Interface

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 | bash

Works 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

temper
$|

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-case

Eval 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())"
Local Library

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
Local Snippets
$|

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:

// claude_desktop_config.json
"mcpServers": {
"temper": {
"command": "temper",
"args": ["mcp"]
}
}

Obsidian Plugin

Run snippets in your notes

Execute snippets directly in your markdown notes. Use code blocks to embed and run:

```temper-run slugify
My Blog Post Title
```
→ my-blog-post-title

Command Reference

Everything you can do with Temper CLI

execution

run <slug>Execute a snippet with optional parameters
eval <code>Evaluate JavaScript expression or code

discovery

search [query]Search snippets by name or description
listList all available snippets
info <slug>Show detailed snippet information
open <slug>Open snippet in browser

local

clone <slug>Copy a public snippet to your local library
add <slug>Create a new local snippet
edit [slug]Open snippet in $EDITOR
remove <slug>Delete a local snippet

system

cache [list|clear]Manage the local snippet cache
configShow current configuration
mcpStart MCP server for AI agents

Installation

Multiple ways to get started

Recommended

Quick Install

One command, auto-detects your platform

curl -fsSL https://tempercode.dev/install.sh | bash
Manual

Download Binary

Download for your platform from GitHub releases

macOS (Intel)temper-darwin-x64
macOS (Apple Silicon)temper-darwin-arm64
Linux (x64)temper-linux-x64
Source

Build from Source

Requires Bun runtime installed

git clone github.com/...
bun install
bun run build