A comprehensive development toolkit plugin for LM Studio, specifically optimized for Qwen models with XML-style tool calling support and autonomous agent capabilities.
- File Management: Create, read, and list files with workspace organization
- Code Execution: Run Python and JavaScript code with proper output capture
- Project Scaffolding: Generate complete project structures for various frameworks
- Package Management: Install dependencies via npm, pip, yarn, and other package managers
- Git Operations: Initialize repositories, commit changes, and manage version control
- Web Search: Research latest information and documentation with Brave Search API integration
- Toggle Mode: Switch between "Edit Mode" (individual tools) and "Agent Mode" (autonomous behavior)
- Multi-step Execution: Complete complex development tasks without step-by-step confirmation
- Intelligent Planning: Analyze requirements and execute comprehensive development workflows
- Research-Driven: Automatically research best practices and implement quality solutions
- XML Tool Calling: Optimized for Qwen's
<function=name><parameter=value>format - Simple Parameters: Robust parameter validation with clear error messages
- Self-Correction: Designed for model error recovery and retry mechanisms
| Tool | Description | Use Case |
|---|---|---|
create_file |
Create files with specified content | Code files, documentation, configs |
read_file |
Read existing files to understand codebase | Code analysis, debugging |
list_files |
Explore directory structures and find files | Project navigation, file discovery |
execute_code |
Run Python/JavaScript with output capture | Testing, validation, scripting |
git_operation |
Initialize repos, commit, manage version control | Project versioning, collaboration |
package_manager |
Install dependencies (npm, pip, yarn, etc.) | Environment setup, dependency management |
create_project_structure |
Scaffold complete project templates | Rapid project initialization |
web_search |
Research latest information and APIs | Documentation, best practices research |
autonomous_agent |
Execute complex tasks autonomously | Complete workflow automation |
- Workspace Folder: Directory for file operations (default: "qwen_workspace")
- Max File Size: File size limit in KB (default: 1024)
- Enable Web Search: Allow internet research capabilities (default: false)
- Brave Search API Key: Enhanced search with higher rate limits (optional)
- Agent Mode: Enable autonomous agent behavior (default: false)
- Default Timeout: Timeout for long operations in seconds (default: 30)
Our enhanced startup scripts now provide automatic setup and installation:
-
Download/Clone the Repository
git clone https://github.com/RiaanDeWinnaar/qwen-code-tools.git cd qwen-code-tools -
Start LM Studio (run at least once to create extensions directory)
-
Run the Startup Script for your platform:
# Windows Command Prompt .\start-plugin.bat # Windows PowerShell .\start-plugin.ps1 # Linux/macOS ./start-plugin.sh
-
That's it! The script will:
- β Auto-detect LM Studio installation
- β
Create plugin directory structure:
~/.lmstudio/extensions/plugins/lmstudio/qwen-coder-tools/ - β Copy all plugin files automatically
- β Validate setup and start the development server
If auto-setup doesn't work, follow these manual steps:
-
Create Plugin Directory:
# Windows mkdir "%USERPROFILE%\.lmstudio\extensions\plugins\lmstudio\qwen-coder-tools" # Linux/macOS mkdir -p ~/.lmstudio/extensions/plugins/lmstudio/qwen-coder-tools
-
Copy Plugin Files: Copy these files from the repository to the plugin directory:
manifest.jsonpackage.jsonsrc/directory- All compiled
.jsfiles (index.js,toolsProvider.js, etc.)
-
Run Development Server:
cd ~/.lmstudio/extensions/plugins/lmstudio/qwen-coder-tools lms dev
git clone https://github.com/RiaanDeWinnaar/qwen-code-tools.git
cd qwen-code-tools
npm install
npx tsc # Compile TypeScript
lms dev # Starts development server- Windows Startup: Copy
start-plugin.battoshell:startup - Desktop Shortcut: Create shortcut to
start-plugin.bat - Task Scheduler: Set up advanced scheduling with LM Studio detection
This error occurs when the plugin directory structure doesn't exist or files aren't copied correctly.
Solutions:
- Use Auto-Setup: Run the startup script from the repository directory
- Check LM Studio: Ensure LM Studio has been run at least once
- Manual Copy: Follow the manual installation steps above
- Check Paths: Verify the plugin directory exists at:
- Windows:
%USERPROFILE%\.lmstudio\extensions\plugins\lmstudio\qwen-coder-tools\ - Linux/macOS:
~/.lmstudio/extensions/plugins/lmstudio/qwen-coder-tools/
- Windows:
Solutions:
- Start LM Studio application
- Wait for LM Studio to fully load
- Run the startup script again
Solutions:
- Windows: Run Command Prompt as Administrator
- Linux/macOS: Check directory permissions:
chmod 755 ~/.lmstudio - Ensure you have write access to the home directory
User: "Create a Python function to calculate fibonacci numbers"
Plugin: Uses create_file tool to generate fib.py with implementation
User: "Build a REST API for task management with authentication"
Agent:
1. π Researches current REST API best practices
2. ποΈ Creates project structure with proper organization
3. π¦ Installs required dependencies (Express, JWT, bcrypt, etc.)
4. π» Implements authentication middleware
5. π£οΈ Creates CRUD endpoints for tasks
6. π Adds comprehensive documentation
7. π§ͺ Creates test cases and validation
8. π Commits changes with meaningful messages
User: "Implement OAuth 2.0 authentication using current best practices"
Agent:
1. π Web searches for latest OAuth 2.0 standards and security practices
2. π Researches secure implementation patterns
3. π§ Creates authentication module with proper security measures
4. π‘οΈ Implements security middleware and validation
5. π Adds comprehensive documentation and examples
6. β
Tests implementation and provides usage guide
- Free Tier: 5,000 queries/month (no API key required)
- With API Key: Higher rate limits and enhanced features
- Setup: Add your Brave API key in plugin configuration
- DuckDuckGo: Instant answers and web results
- Wikipedia: Encyclopedia content for research
- Automatic Failover: Seamless switching if primary service fails
Supports scaffolding for:
- Python: Flask, FastAPI, Django projects
- JavaScript: Node.js, Express, React applications
- TypeScript: Modern TS projects with proper configuration
- Web: HTML/CSS/JS static sites
- API: REST API templates with documentation
- β Individual tool usage with explicit calls
- β Step-by-step confirmation for each action
- β Precise, controlled development tasks
- β Suitable for specific, targeted operations
- π Multi-step task execution without confirmation
- π§ Intelligent planning and decision making
- π Research-driven approach with web search
- π Complete workflow automation
- π― Ideal for complex, end-to-end development projects
LM Studio currently lacks a documented method for local plugin installation without Hub authentication.
β RESOLVED: Our enhanced startup scripts now provide automatic setup:
- Auto-detects LM Studio installation
- Creates plugin directory structure automatically
- Copies plugin files to the correct location
- Validates setup before starting
- Provides clear error messages and troubleshooting guidance
Current Solution: Use the provided auto-setup startup scripts for seamless plugin installation and experience.
qwen-coder-tools/
βββ src/
β βββ index.ts # Plugin entry point
β βββ toolsProvider.ts # Main tools implementation
β βββ agentProvider.ts # Autonomous agent functionality
β βββ config.ts # Configuration schemas
βββ startup scripts/
β βββ start-plugin.bat # Windows batch script
β βββ start-plugin.ps1 # PowerShell script
β βββ start-plugin.sh # Linux/macOS shell script
βββ manifest.json # Plugin metadata
βββ package.json # Dependencies and scripts
βββ README.md # This file
npm install # Install dependencies
npx tsc # Compile TypeScript
lms dev # Test in development# Start development server
lms dev
# Test individual tools in LM Studio
# Test autonomous agent mode (enable in settings)
# Verify web search functionality- β All 9 tools functional
- β Qwen XML parsing compatibility
- β Agent mode autonomous behavior
- β Web search with fallbacks
- β Error handling and recovery
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Sandboxed Execution: Code runs in controlled environment
- Path Validation: File operations restricted to workspace
- Timeout Protection: Long operations automatically terminated
- API Key Security: Credentials stored securely in LM Studio
- Input Validation: All parameters validated with Zod schemas
This project is licensed under the MIT License - see the LICENSE file for details.
- LM Studio Team: For the excellent plugin SDK and development platform
- Qwen Team: For the powerful language models with tool calling capabilities
- Community: For feedback and testing during development
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: LM Studio Plugin Docs
Created by: Riaan De Winnaar
Version: 2.0
Last Updated: August 3, 2025
Compatible with: LM Studio 1.4.0+, Qwen 2.5+ models

