Execute Pterodactyl server commands directly from VSCode.
Features
- Run predefined Pterodactyl commands
- Sidebar command list
- Default command execution
- Secure API key storage using VSCode SecretStorage
- Automatic commands.json generation
- Fast command execution from the status bar
Setup
1. Install the extension
Install the extension from the VSCode Marketplace.
2. Configure your API key
Open the command palette:
Ptero: Set API Key
Paste your Pterodactyl Client API key.
3. Configure commands.json
A commands.json file is automatically created in your workspace root.
Example:
{
"config": {
"panelUrl": "https://panel.example.com",
"serverId": "abcd1234"
},
"restart": "restart",
"say_hi": "say Hello!",
"backup": "backup start"
}
Usage
Run a command
Click a command in the sidebar.
Select a default command
Open:
Ptero: Select Default
Run the default command
Click the status bar button:
▶ restart
Security
API keys are stored securely using VSCode SecretStorage.
They are never saved inside commands.json.
Requirements
- Pterodactyl Panel
- Client API Key
- VSCode 1.120+
Roadmap
Planned features:
- Live console via WebSocket
- Multi-server support
- Command groups
- Output/log panel
- Server power controls
- Quick server switching