---
title: "Use RewriteBar with PopClip"
description: "Use RewriteBar with PopClip to run the command menu or a specific AI action on selected text anywhere on your Mac."
url: "https://rewritebar.com/docs/core-features/popclip"
---

# PopClip Integration

RewriteBar supports PopClip integration (introduced in RewriteBar v2.4.0 on January 23, 2025).

## Integration Modes

1. **Command Menu Snippet**: Opens RewriteBar command menu so you can pick an action.
2. **Direct Command Snippet**: Runs one specific command immediately.

## Install a PopClip Snippet

1. Open RewriteBar settings or a command where a **PopClip** button is available.
2. Click the **PopClip** button.
3. Select the snippet text in the shown text field.
4. Wait for PopClip to appear.
5. Click **Install Extension...** in PopClip.

Reference video: [How to install a snippet](https://www.popclip.app/guide/extensions#installing-a-snippet)

### Video Walkthrough

[Watch the video on YouTube](https://www.youtube.com/watch?v=%5FZUcEz7ZwSc)

## Optional Snippet Configuration

You can edit snippet fields before installing:

- **Name**: extension label shown in PopClip
- **Icon**: use RewriteBar icon or any PopClip icon
- **Optional Parameters**: command-specific values (for example language or tone)

## Example Snippets

### Command Menu Snippet

```javascript
// #popclip
// name: RewriteBar
// icon: symbol:sparkles
// language: javascript

pasteboard.text = popclip.input.text;
popclip.openUrl("rewritebar://command-menu");

```

### Direct Command Snippet (Fix Grammar & Spelling)

```javascript
// #popclip
// name: Fix Grammar & Spelling
// icon: symbol:pencil.tip.crop.circle
// language: javascript

pasteboard.text = popclip.input.text;
popclip.openUrl("rewritebar://command/fix-grammar-spelling");

```

### Parameterized Command Snippet (Translate)

```javascript
// #popclip
// name: Translate to {language}
// icon: symbol:globe
// language: javascript

pasteboard.text = popclip.input.text;
popclip.openUrl("rewritebar://command/translate/{language}");

```

## Helpful Links

- [PopClip Snippets Documentation](https://www.popclip.app/dev/snippets)
- [PopClip Icon List](https://www.popclip.app/dev/icons)
- [RewriteBar PopClip Announcement](https://rewritebar.com/blog/2025/popclip-integration)
