Integration
Phpstorm Openclaw Chat
OpenClaw Chat β AI chat plugin for PhpStorm & JetBrains IDEs. Streaming, images, configurable API endpoint.
README
# OpenClaw Chat β PhpStorm Plugin
Bring your own AI into JetBrains IDEs. Works with **OpenClaw**, OpenAI, or any OpenAI-compatible API.
## Features
- π¬ **Streaming Chat** β token-by-token responses
- πΌοΈ **Image Support** β paste screenshots, send to vision models
- βοΈ **Configurable API** β point it at your own endpoint
- π¨ **Code Highlighting** β syntax-colored code blocks in responses
- π **Markdown Rendering** β rich text with headings, lists, links
- π€ **Context Actions** β right-click code β "Send to OpenClaw Chat"
## Requirements
- JetBrains IDE **2024.3+** (PhpStorm, IntelliJ IDEA, WebStorm, etc.)
- Java 17+ (bundled with PhpStorm, no extra install needed)
## Quick Install
### Option 1: Open & Build in PhpStorm (easiest)
1. **Clone** the repo:
```bash
git clone https://github.com/campiGit/phpstorm-openclaw-chat.git
```
2. **Open** the folder in PhpStorm: `File β Open β select the cloned folder`
3. PhpStorm auto-detects the Gradle project β click **"Load Gradle Project"**
4. Wait for Gradle to download dependencies (first time takes ~2 min)
5. Open the **Gradle** tool window (`View β Tool Windows β Gradle`)
6. Run: `Tasks β intellijPlatform β buildPlugin`
7. Plugin ZIP appears in `build/distributions/`
8. **Install:** `Settings β Plugins β βοΈ β Install Plugin from Diskβ¦` β select the ZIP
9. **Restart** PhpStorm
### Option 2: Command Line
```bash
# Prerequisites: JDK 17+ and Gradle 8+
cd phpstorm-openclaw-chat
./gradlew buildPlugin
# ZIP is in build/distributions/
```
> If `gradlew` isn't present, first run: `gradle wrapper`
## Setup
1. Open **Settings β Tools β OpenClaw Chat**
2. Enter your **API Endpoint URL** (e.g. `https://api.openai.com/v1/chat/completions`)
3. Enter your **API Key**
4. Set your preferred **Model**
5. Open the chat: **View β Tool Windows β OpenClaw Chat**
## Usage
| Action | How |
|--------|-----|
| Send message | Type + **Ctrl+Enter** or click **Send** |
| New line | **Enter** (sends on Ctrl+Enter) |
| Paste image | **Ctrl+V** (image on clipboard) |
| Drag & drop image | Drop an image file onto the chat |
| Send code | Select code β Right-click β **Send to OpenClaw Chat** |
| Copy AI response | Click the π icon on assistant messages |
| New conversation | Click the π button |
## Datenschutz & Sicherheit
**Das Plugin sendet KEINE Daten an Dritte.** Die gesamte Kommunikation lΓ€uft ausschlieΓlich zwischen deiner IDE und dem von dir konfigurierten API-Endpoint. Es gibt:
- β Keine Telemetrie
- β Kein Tracking / Analytics
- β Keine Crash-Reports an externe Server
- β Keine Update-Checks (die Verbindung zu einer fremden Infrastruktur herstellen)
- β Keine versteckten Netzwerk-Verbindungen
**Datenfluss:** `Deine IDE β Dein API-Endpoint` (und zurΓΌck). Mehr nicht.
Der Chatverlauf wird nur lokal im IDE-Konfigurationsverzeichnis gespeichert (`openclaw-chat.xml`).
Der API-Key wird in derselben lokalen Datei abgelegt.
Geeignet fΓΌr den Einsatz in deutschen Unternehmen mit DSGVO-Anforderungen β vorausgesetzt, der verwendete API-Endpoint ist selbst DSGVO-konform (z.B. eigener Server in Deutschland oder EU).
## Troubleshooting
**"Please configure API settings first"** β Go to `Settings β Tools β OpenClaw Chat` and fill in the API fields.
**No response / timeout** β Check that your API endpoint URL is correct and reachable. The plugin expects an OpenAI-compatible `/v1/chat/completions` endpoint.
**Build fails in PhpStorm** β Make sure PhpStorm is using JDK 17+: `File β Project Structure β SDK`.
## Development
```bash
# Run in sandbox IDE for testing
./gradlew runIde
# Run tests
./gradlew test
```
integration
Comments
Sign in to leave a comment