Skip to main content

Availability

This page covers the fastest way to develop and test plugins locally. The key insight: use file:// paths and the reload API for instant iteration without reinstalling the plugin.

Quick Start: 5-Minute Setup

1. Create Your Plugin

Create main.go:
Expandable

2. Build and Get Absolute Path

3. Register Plugin Once

Expandable
Save the plugin ID from the response!

4. Development Loop

Now you can iterate without reinstalling:
That’s it! Your changes are live instantly.

The Development Loop Explained

When Do You Need to Reinstall?

You only need to update the plugin registration (not just reload) when:

Development Environment Setup

Run AI Studio locally for fastest iteration:

Option 2: Docker Compose

Mount your plugin directory:
Then use container paths:

Option 3: Remote AI Studio

For remote instances, use grpc:// deployment during development:

Helper Scripts

dev.sh - One-Command Development

Create this script in your plugin directory:
Expandable
Usage:

watch.sh - Auto-Rebuild on Save

Expandable

Project Structure Recommendations

Makefile Example

Expandable
Usage:

Debugging Tips

Plugin logs go to AI Studio’s log output:
Expandable
Before registering, test your plugin runs:

Common Issues and Resolution

Symptoms: Reload returns success but changes aren’t reflectedSolutions:
Symptoms: Reload fails with permission errorSolutions:
Symptoms: Old behavior persists after reloadSolutions:
Symptoms: New UI components or permissions not appearingSolutions: