A revolutionary AI-powered command palette that transforms how you interact with WordPress. Control your entire WordPress site using natural language commands - no more clicking through menus!
- Type commands in plain English: "Create a new blog post about WordPress security"
- Complex multi-step operations: "Copy the About Us page and replace all instances of 2023 with 2024"
- Smart interpretation: The AI understands context and intent
- Works everywhere: WordPress admin, post editor, and even the frontend (for logged-in users)
- Global keyboard shortcut:
Cmd+K(Mac) orCtrl+K(Windows/Linux) - No more navigating through complex menu structures
- Fuzzy search through all WordPress functionality
- Auto-discovers plugin capabilities (WooCommerce, ACF, etc.)
- Dynamic command suggestions based on context
- Personalized suggestions based on your usage patterns
- Generate charts and reports on demand
- "Show me page views for the last month"
- "Compare this quarter's sales to last year"
- Zero configuration required
- Automatically detects and integrates with installed plugins
- Works with WooCommerce, Advanced Custom Fields, and more
- Respects WordPress user roles and capabilities
- Only shows commands you have permission to execute
- Secure AI processing with your own API key
- Download the plugin
- Upload to your WordPress
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Configure your AI API key in Settings → AI Command Palette
The plugin supports multiple AI providers:
- OpenAI (GPT-4): Get API Key
- Anthropic (Claude): Get API Key
- Go to Settings → AI Command Palette
- Enter your API key
- Select your preferred AI model
- Test the connection
- You're ready to go!
Press Cmd+K (Mac) or Ctrl+K (Windows/Linux) anywhere in WordPress to open the command palette.
- "Create a new blog post about healthy recipes"
- "Edit the About Us page"
- "Delete all posts in trash"
- "Show me the latest 5 draft posts"
- "Deactivate the Akismet plugin"
- "Activate WooCommerce"
- "Update all plugins" (coming soon)
- "Change site title to My Awesome Blog"
- "Update the tagline"
- "Set timezone to New York"
- "Create a new product called Blue T-Shirt priced at $29.99"
- "Show me orders from last week"
- "Update order #1234 to completed"
- "Copy the Services page to a new draft and replace all prices with 10% increase"
- "Find all posts mentioning 'COVID' and change their category to Archive"
- "Create a landing page for our webinar with a contact form"
Start typing to search through all WordPress admin pages:
- "media" → Media Library
- "users" → Users page
- "settings" → Settings menu
# Install dependencies
npm install
composer install
# Build for production
npm run build
# Development mode with watch
npm run devadd_action('aicp_register_commands', function($registry) {
$registry->register_command('my_custom_command', [
'title' => 'My Custom Command',
'description' => 'Does something special',
'category' => 'custom',
'callback' => function($params) {
// Your command logic here
return [
'success' => true,
'message' => 'Command executed!'
];
}
]);
});add_filter('aicp_ai_functions', function($functions) {
$functions[] = [
'name' => 'myCustomFunction',
'description' => 'My custom function for AI',
'parameters' => [
'type' => 'object',
'properties' => [
'param1' => [
'type' => 'string',
'description' => 'First parameter'
]
]
]
];
return $functions;
});- WordPress 6.0 or higher
- PHP 8.0 or higher
- An API key from OpenAI or Anthropic
- Your AI API key is stored securely in your WordPress database
- Commands are processed through your chosen AI provider's API
- Usage data is stored locally for personalization (can be disabled)
- No data is sent to third parties except your chosen AI provider
- Check if you have the required permissions (at least 'edit_posts')
- Try using the alternate keyboard shortcut
- Check browser console for JavaScript errors
- Verify your API key is correct
- Test the connection in settings
- Check if you have API credits remaining
- Ensure your server can make external HTTPS requests
- Disable other plugins one by one to identify conflicts
- Check if another plugin uses the same keyboard shortcut
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Email: support@example.com
GPL v2 or later
Created with ❤️ by [Your Name]
Special thanks to the WordPress community and all contributors.
This plugin now supports Chrome's experimental built-in AI APIs (see Chrome AI APIs) through a unified AI abstraction layer that provides seamless progressive enhancement.
- Client-side AI: If your browser supports
window.AI(Chrome 138+), you can opt-in to use client-side AI for intent classification and suggestions. - Privacy-first: Client-side AI processing keeps your data in the browser - no data leaves your device.
- Performance: Faster response times for simple operations like intent classification.
- Graceful degradation: Automatic fallback to server-side AI for complex operations or when client-side AI is unavailable.
- User control: Toggle client-side AI preferences in the palette settings.
The plugin automatically detects available AI capabilities:
- Checks for
window.AI.textGenerationfor text processing - Checks for
window.AI.embeddingfor semantic analysis - Checks for
window.AI.imageGenerationfor image-related tasks - Identifies browser type and version
The unified AI abstraction layer routes requests based on:
- Client-side AI: Used for simple operations when available and preferred
- Intent classification (queries ≤ 10 words)
- Contextual suggestions
- Simple embeddings (text ≤ 1000 characters)
- Server-side AI: Used for complex operations or when client-side AI fails
- Complex text generation
- Multi-step workflows
- Advanced natural language processing
- Rule-based fallback: Used when all AI services are unavailable
- Keyword-based intent classification
- Template-based suggestions
- Simple hash-based embeddings
The system implements a three-tier fallback strategy:
- Primary: Client-side AI (if available and preferred)
- Secondary: Server-side AI (OpenAI/Claude)
- Tertiary: Rule-based matching
- Settings modal: Shows AI status, available features, and browser compatibility
- Real-time feedback: Users see which AI source is being used
- Transparent operation: No interruption when switching between AI sources
- Performance indicators: Loading states indicate AI processing
The AIAbstraction class provides a unified interface:
const aiAbstraction = AIAbstraction.getInstance();
const response = await aiAbstraction.process({
type: 'intent_classification',
query: 'create a new blog post'
});intent_classification: Categorizes user queriessuggestions: Generates contextual command suggestionsembedding: Creates semantic embeddings for similarity matchingtext_generation: Generates complex text responses
{
success: boolean,
data: any,
error?: string,
source: 'client' | 'server' | 'fallback'
}| Browser | Version | Client-side AI | Features |
|---|---|---|---|
| Chrome | 138+ | ✅ Full support | textGeneration, embedding, imageGeneration |
| Chrome | <138 | ❌ Not available | Server-side AI only |
| Firefox | Any | ❌ Not available | Server-side AI only |
| Safari | Any | ❌ Not available | Server-side AI only |
| Edge | Any | ❌ Not available | Server-side AI only |
- Client-side processing: Data never leaves your browser when using client-side AI
- No tracking: Chrome's built-in AI doesn't track or store your queries
- User control: You can disable client-side AI at any time
- Fallback security: Server-side AI uses your configured API keys and follows your privacy settings
- Reduced latency: Client-side AI eliminates network round-trips
- Lower costs: Reduces API calls to external AI services
- Better availability: Works even when external AI services are down
- Scalability: Reduces server load for simple operations
See the Chrome AI API documentation for more details about the underlying APIs.