p3n for Obsidian

Select text in a note. See if it reads as AI-written, or rewrite it in place.

Obsidian Community plugins · p3n.si · All p3n apps

CI Obsidian plugin version

![Check for AI: a score, the reason, and the sentences that read as AI](docs/check.png) ## What it does - **Check for AI.** A score, a one-line reason, and the sentences that give it away. Select a sentence in the results to find it in the note. - **Rewrite.** A version that keeps your facts and drops the filler. **Replace selection** puts it where your selection was, as one undo step. - Results open in a side view, next to the note. Works on desktop and mobile. ![Rewrite, then Replace selection](docs/rewrite.png) ## How to use it 1. Select text in a note. Check needs at least 40 characters; Rewrite needs a sentence of eight words or more. 2. Run **p3n: Check for AI** or **p3n: Rewrite** from the command palette, or right-click the selection and choose **Check for AI with p3n** or **Rewrite with p3n**. The p3n view (the pen icon in the ribbon, or **p3n: Open results**) has the same two buttons. From the view, the buttons and the commands work on the note you were last in. 3. After a rewrite, choose **Replace selection**, or **Copy**. Undo in the note puts your text back. If the rewrite left out a link from your selection, p3n says so before you replace. The commands have no hotkeys of their own; you can set some in **Settings → Hotkeys**. ## Free, or with a key You get 10 free calls an hour without an account (a check or a rewrite is one call), up to 5,000 characters each. For more, [sign up at p3n.si](https://p3n.si/register) (you get free credit), make a key on the [API keys](https://p3n.si/dashboard/keys) page, and add it in **Settings → p3n → API key**, or run **p3n: Set API key** from the command palette. p3n checks the key before it saves it, so a mistyped key never replaces one that works. The key is kept in Obsidian's keychain on this device, not in your notes or the plugin's `data.json`. ## Network use, accounts and payment Obsidian asks plugins to say this plainly, so here it is. - **Network use.** The plugin talks to one service: the p3n API at `https://api.p3n.si`, run by [p3n.si](https://p3n.si). The AI check and the rewrite run on p3n's servers, so the text has to go there. The plugin sends the text you selected, and only when you choose Check for AI or Rewrite. With an API key, it also asks p3n for your balance when the p3n view opens, after each check or rewrite, and when the key changes; that sends the key, no text. Every call names the plugin and its version (`X-P3N-Client: p3n-obsidian/`), so your usage page on p3n.si can show which tool made it. - **Nothing else.** The plugin doesn't read your vault or other notes, keeps no history, and has no analytics, telemetry or ads. - **Account and payment.** Free use needs no account. Full access, meaning more calls and longer texts (up to 200,000 characters), needs a p3n.si account and an API key, and calls are paid from your p3n balance. Prices are on [p3n.si/pricing](https://p3n.si/pricing). - **What p3n.si does with the text.** It keeps it for up to 7 days, sends it through OpenRouter to the AI model providers that run the check or rewrite, and logs each call's time and IP address. Details are in [PRIVACY.md](PRIVACY.md) and the [p3n.si privacy policy](https://p3n.si/privacy). ## Install From Obsidian: **Settings → Community plugins → Browse → p3n**, then **Install** and **Enable**. It's listed in the [Obsidian Community directory](https://community.obsidian.md/plugins/ai-pen). By hand: download `main.js`, `manifest.json` and `styles.css` from the [latest release](https://github.com/Barabosik/p3n-obsidian/releases/latest) into `/.obsidian/plugins/ai-pen/`, then enable **p3n** in **Settings → Community plugins**. What changed in each version is in [CHANGELOG.md](CHANGELOG.md). ![p3n on a phone](docs/mobile.png) ## Other p3n apps p3n also works in [Chrome and Firefox](https://nikita-andreiev.com/p3n/#browser), [Word and Excel](https://nikita-andreiev.com/p3n/#office), [Google Docs](https://nikita-andreiev.com/p3n/#docs), [VS Code](https://nikita-andreiev.com/p3n/#vscode) and [Sublime Text](https://nikita-andreiev.com/p3n/#sublime). Install steps for each are on [nikita-andreiev.com/p3n](https://nikita-andreiev.com/p3n/). ## Develop Build, tests and the end-to-end run in a real Obsidian are in [CONTRIBUTING.md](CONTRIBUTING.md). ## Licence MIT