🚀 AutoAPI VS Code Extension
AutoAPI is an intelligent Visual Studio Code extension that uses GPT-powered chat to help you generate, run, and review API tests directly from your editor --- with zero setup.
No CLI. No Node.js. No command line required. Everything runs natively inside VS Code.
✨ Features
- 💬 Chat-based testing experience --- talk to AutoAPI like a teammate
- 🧠 GPT-powered test generation from your OpenAPI spec
- 🧪 One-click test execution directly in VS Code
- 📊 Live results panel to visualize pass/fail status
- 🧷 Auto-detects OpenAPI changes and prompts re-testing
- 🌈 Zero setup required --- just install and start testing
⚙️ Getting Started
1. Install AutoAPI
Open VS Code → Extensions → Search for "AutoAPI" → Install.
2. Open Your Project
Open any folder containing your OpenAPI file (openapi.yaml or openapi.json).
3. Launch AutoAPI
- Open the AutoAPI Sidebar from the Activity Bar
4. Start Chatting
Use natural language to control everything:
"Generate tests for all endpoints."
"Run tests again."
"Show failed cases only."
"Update the base URL to my staging server."
AutoAPI will automatically:
- Parse your OpenAPI file
- Generate and run GPT-based test cases
- Display results in a visual tree view
🧭 Example Workflow
- Open your project with an OpenAPI spec.
- Start chatting in the AutoAPI sidebar.
- Generate or run tests.
- View results live in VS Code.
- Rerun failed or all tests with a single command.
That's it --- no terminal, no setup, no external dependencies.
🗂 Folder Structure
AutoAPI creates a minimal, self-contained folder in your workspace:
.your-project/
├── openapi.yaml
├── eslint.config.mjs
├── .autoapi.config.json
└── .autoapi/
├── cache/
│ ├── endpoints-baseline.json
│ └── last-diff.json
├── chat-history.json
├── results/
│ ├── last-run-history-1761760960361.json
│ ├── last-run-history-1761760985797.json
│ ├── last-run-history-1761761028603.json
│ └── last-run.json
├── temp/
│ └── test_chunk_0.js
└── yamlhistory/
├── 1761760942099-POST.yaml
├── 1761760980136-GET.yaml
├── 1761761017332-POST.yaml
└── history.json
You can inspect results manually anytime if needed.
🧩 Key Highlights
| Feature |
Description |
| 💬 Chat Interface |
Manage and run tests conversationally |
| 🧠 GPT Integration |
Auto-generates tests based on your OpenAPI spec |
| ⚙️ No CLI Required |
Everything runs within VS Code |
| 📊 Visual Results |
Tree-view test results with summary |
| 🔄 Auto Refresh |
Re-runs tests when OpenAPI changes are detected |
🧠 How It Works
AutoAPI detects your OpenAPI specification (yaml or json).
It uses GPT models to:
Understand your API structure
Generate realistic test cases
Simulate real-world API usage
It executes these tests automatically.
Results are saved to .autoapi/results/last-run.json and displayed in the sidebar.
No local server, Node.js, or CLI tools are required --- everything happens within VS Code's sandboxed environment.
📝 Release Notes
**3.x
💬 New Chat-Based Testing UI
⚡ Removed CLI dependency --- fully self-contained
🧠 Integrated GPT workflow inside VS Code
🔐 Improved secret management
🖥️ Enhanced results panel & sidebar interface
🧩 Smarter OpenAPI file detection
⚙️ Better error handling and startup performance
🧪 Added “Generate Test from API Route” CodeLens for one-click test creation
2.x (Legacy Versions)
Depended on autoapi-cli and Node.js
Required manual installation and setup
Basic sidebar and command support only
🧩