AutoScript VPN provides easy-to-use scripts for quick VPN server deployment. Secure your connections with just a few commands.
Our automated scripts make VPN server deployment fast, secure, and hassle-free. No technical expertise required.
Deploy your VPN server in minutes with our automated scripts. No technical expertise required.
Military-grade encryption and secure protocols to protect your data and privacy.
Access content from anywhere in the world with our global server network.
Optimized for speed and reliability, ensuring smooth browsing and streaming.
Completely open source, transparent, and community-driven development.
Active community and documentation to help you with any issues.
Get your VPN server up and running in just a few simple steps with our automated installation script.
Clone the repository from GitHub to your server.
Execute the main script with root privileges.
Follow the interactive setup to configure your VPN settings.
Use the generated configuration files to connect your devices.
Complete API reference for managing your VPN users programmatically.
The AutoScript VPN Web API provides a RESTful interface for managing VPN users programmatically. All endpoints require Bearer Token authentication.
HTTPS: https://your-domain.com/api/
HTTP: http://your-domain.com:9000/
Note: The internal API server runs on port 9000. Nginx is configured to proxy requests from the HTTPS endpoint.
All API requests must:
Content-Type: application/json headerAll API responses follow this structure:
All API endpoints require Bearer Token authentication. The token must be included in the Authorization header of every request.
You can manage your API tokens using the interactive menu on your server:
Or manually edit the token file:
| Endpoint | Method | Description |
|---|---|---|
/api/add-trojan |
POST | Create new Trojan account |
/api/delete-trojan |
POST | Delete Trojan account |
/api/cek-trojan |
POST | Check account details |
/api/add-quota-trojan |
POST | Add quota to account |
Parameters:
username (required): Unique username for the accountquota (required): Data quota in GB (0 for unlimited)uuid (optional): Custom UUID (generated automatically if not provided)| Endpoint | Method | Description |
|---|---|---|
/api/add-vmess |
POST | Create new Vmess account |
/api/delete-vmess |
POST | Delete Vmess account |
/api/cek-vmess |
POST | Check account details |
/api/add-quota-vmess |
POST | Add quota to account |
| Endpoint | Method | Description |
|---|---|---|
/api/add-vless |
POST | Create new Vless account |
/api/delete-vless |
POST | Delete Vless account |
/api/cek-vless |
POST | Check account details |
/api/add-quota-vless |
POST | Add quota to account |
The API uses standard HTTP status codes to indicate the success or failure of requests.
401 Unauthorized - Invalid or missing Bearer token
400 Bad Request - Invalid JSON or missing required fields
404 Not Found - User not found
409 Conflict - User already exists
500 Internal Server Error - Server-side error
AutoScript VPN is open source and free to use under the permissive MIT License.
Copyright (c) 2023 AutoScript VPN
Use in commercial projects
Modify and customize the code
Distribute your changes
Use in private projects
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Hear from our community of users who have successfully deployed their VPN servers with AutoScript.
Join thousands of users who have deployed their own VPN servers with AutoScript VPN.
Get Started on GitHub