Skip to content

Editor Support

The official FastAPI extension enhances your FastAPI development workflow with route discovery, navigation, deployment, and live log streaming.

For more details about the extension, refer to the README on the GitHub repository.

The FastAPI extension is available for both VS Code and Cursor. It can be installed directly from the Extensions panel in each editor by searching for “FastAPI” and selecting the extension published by FastAPI Labs. The extension also works in browser-based editors such as vscode.dev and github.dev.

By default, the extension will automatically discover FastAPI applications in your workspace by scanning for files that instantiate FastAPI(). If auto-detection doesn’t work for your project structure, you can specify an entrypoint via [tool.fastapi] in pyproject.toml or the fastapi.entryPoint VS Code setting using module notation (e.g. myapp.main:app).

  • Path Operation Explorer — A sidebar tree view of all routes in your application; click to jump to any route or router definition.
  • Route Search — Search routes by path, method, or name with Ctrl+Shift+E (Cmd+Shift+E on Mac).
  • CodeLens Navigation — Clickable links above test client calls (e.g. client.get('/items')) that jump to the matching route for quick navigation between tests and implementation.
  • Deploy to FastAPI Cloud — One-click deployment of your app to FastAPI Cloud.
  • Stream Application Logs — Real-time log streaming from your deployed application with level filtering and text search.

If you’d like to familiarize yourself with the extension’s features, you can checkout the extension walkthrough by opening the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) and selecting “Welcome: Open walkthrough…” and then choosing the “Get started with FastAPI” walkthrough.