Theneo for VS Code and Cursor

Docs that humans and agents ship together. Theneo is the all-in-one developer portal for API references, guides, changelogs and private customer portals, trusted by more than 18,000 companies.
This extension brings Theneo into your editor. Write your docs in Markdown and MDX next to your code, or next to the AI agent that writes them with you. See every page rendered as you type, check it with the same audit as the Theneo CLI, and deploy to a branch for review or straight to live, without leaving VS Code or Cursor.
What you can do
- Live preview: the page you are editing, rendered beside the editor as you type, Theneo widgets included. Nothing is uploaded.
- Widget library: insert callouts, steps, tabs, code blocks, cards, tables and the other Theneo widgets from the panel, or by typing
<.
- Audit: the checks of
theneo audit, listed in the Problems panel and run again on every save.
- Deploy to a branch or live: pick an open branch, create one from your git branch name, or publish to main.
- Deploy an API spec: send an OpenAPI, Swagger, Postman or GraphQL file to a project, with smart merge, overwrite, append or new endpoints only, into the tab you choose.
- Preview on Theneo: the exact rendering, with your branding, in your browser, without publishing anything.
- Round trips with the web editor: export a project to a folder, compare it with Theneo, and pull the latest content.
Get started
- Click the Theneo icon in the activity bar. The panel that opens walks you through everything below.
- Connect your account. Sign in at app.theneo.io, or app-eu.theneo.io for EU data residency, open Profile Settings → Tools & Integrations and copy your API key. In the panel, pick the same region, paste the key and press Connect. The key is checked with Theneo before it is saved in your editor's secure storage.
- Open your docs. Open a folder that contains a
theneo.json (exported from Theneo or created with the Theneo CLI), or choose Export a project from Theneo in the panel to download one.
Live preview, the widget library and the audit work offline and without an account. New to Theneo? Join for free.
A docs folder
A Theneo docs folder holds a theneo.json and one folder per section:
my-docs/
├── theneo.json
├── introduction/
│ ├── index.md
│ └── section.json
└── api-reference/
├── index.md
├── section.json
└── create-customer/
├── index.md
└── section.json
theneo.json lists the sections and tabs in display order. A top-level section's slug is its folder name; nested sections use the path, for example api-reference/create-customer.
The Theneo panel
- Account: whether you are connected, and the form to connect when you are not.
- Docs folder: the folder that was found, the Theneo project it deploys to (Change links another one or creates a project), the branch it last deployed to, and the result of the last audit.
- Actions: every action, with one line that says what it does.
- Insert a widget: one button per widget.
- API spec: deploy a spec, or create a new project from one.
The collapsed Sections view below lists the pages from theneo.json.
Live preview
Live preview renders the page you are editing as you type. It follows the file you switch to and scrolls with the editor; double-click a block in the preview to jump to its source line.
- Callout, Steps, Accordion, Tabs, Card and CardGroup, Table, CodeBlock, Image, Updates and Divider are rendered. Video, Mermaid diagrams and the AI writer appear as labelled placeholders.
- It uses the colors of your editor theme, not your Theneo branding. Preview on Theneo shows the exact result.
- Local images are displayed and flagged, because Theneo only shows hosted images.
Start it from the panel, the preview icon in the title bar of a Markdown file, or Theneo: Open Live Preview.
- Insert a widget in the panel adds the widget at the cursor, on its own lines.
- Typing
< in a page offers the same list; <ca narrows it to Callout and Card.
- Theneo: Insert Widget… in the Command Palette and the editor's context menu lists every widget with a description.
The library has Callout, Steps, Tabs, Code block, Accordion, Card group, Card, Table, Image, Video, Updates, Mermaid diagram, Divider and Glossary term, plus single parts to extend a widget that is already there: a step, a tab panel, an accordion item, a card, a table row and an update entry.
Widgets arrive with placeholder text. Press Tab to move from field to field; choices such as the callout type or the code language open as a list. Selected text goes into the widget when it has a place for it. The markup is the form Theneo exports, and every widget is tested against the CLI audit.
Audit
Run audit uses the audit engine of the Theneo CLI, so the editor and theneo audit report the same findings: theneo.json fields, sections without a folder or page, missing section.json, duplicate slugs, tabs, and broken widgets such as unclosed tags, invalid attributes JSON or wrong nesting.
- Findings appear in the Problems panel with their rule id and open the right file and line.
- The audit runs again on every save; its summary is shown in the panel.
- Deploying a folder with audit errors asks for confirmation first.
Deploy to a branch, or live
Deploy to Theneo asks where the folder should go:
- A branch: the open branches of the version, with the one this folder used last first. The branch content is replaced by the folder and nothing is published. Afterwards you can open a read-only preview link, or open the branch in Theneo to request a review.
- Create a new branch: starts a branch from the current content and deploys to it. Your git branch name is suggested.
- Main: publish live: replaces the main content and publishes it. The confirmation names the Theneo project, workspace and version.
Branches are the same ones the Theneo editor and the CLI use. They are available in workspaces with document review; elsewhere, Deploy goes straight to main. Where a workspace requires review, deploy to a branch.
Branches in the panel lists the open branches. For each one you can deploy this folder, open a preview, open it in Theneo, Update from main, Publish branch (workspace admins) or Delete branch. A branch locked by a review does not take uploads, and you are warned before replacing a branch that changed in Theneo since your last deploy.
Preview on Theneo opens the exact rendering in your browser without touching a branch you work on.
Also available, for main:
- Import to main draft updates the draft in the Theneo editor without publishing.
- Compare with main lists the files that differ from Theneo and opens side-by-side diffs.
- Pull latest from main overwrites the folder with the content in Theneo.
- Before a deploy to main, the extension checks whether Theneo changed since your last pull or deploy, and lets you compare, pull or overwrite.
Only theneo.json, the index.md/index.mdx and section.json of the sections it lists, and the apiSpec file it names are uploaded. Other files in the folder, such as a README, never leave your machine.
Deploy an API spec
Open an OpenAPI, Swagger, Postman or GraphQL file and run Theneo: API Spec: Deploy to a Project, from the panel, the Explorer context menu or the Theneo Doc status bar item. It asks for:
- The project and version that receive the spec.
- How to apply it: Smart merge (only sections whose API contract changed), Overwrite, Append, New endpoints only or Merge (experimental).
- For merges, which descriptions win: the spec's, or the ones written in Theneo.
- The tab the spec goes into, or the whole project.
- Save as draft or Publish live.
A summary is shown before anything is sent. In workspaces with branches you can send the spec to a branch instead: it is added to the docs folder's theneo.json as apiSpec and deployed with the folder.
API Spec: All Actions for This File also creates a new Theneo project from a spec, and manages preview projects for trying one out.
Regions
Theneo runs in two regions with separate accounts: US (app.theneo.io) and EU (app-eu.theneo.io). Pick yours in the panel. Each region keeps its own API key, and a key is only ever sent to the region it was entered for.
Cursor and other editors built on VS Code
The extension runs unchanged in Cursor and in other editors built on VS Code 1.75 or newer. Install it from the editor's Extensions view (Cursor lists extensions from Open VSX), or install a .vsix file with Extensions: Install from VSIX….
Before you deploy
- Importing re-creates sections from the files. Page privacy, viewer lists and SEO fields set in the Theneo editor are reset for imported sections, and URL slugs are derived again from section names. This is how Theneo imports work, from the CLI as well.
- Images must be hosted. Local image files are not uploaded and are flagged in the Problems panel.
- Files are read from disk, so you are asked to save unsaved changes first.
- Cancelling an upload stops it on your machine. A request that already reached Theneo may still be applied.
Security
- The API key is stored in your editor's secure storage. If the operating system offers none, the extension tells you and keeps the key in your user settings.
theneo.apiDomain and theneo.appDomain are read from user settings only, so a repository's workspace settings cannot change where your API key is sent.
- Pull and export only write
theneo.json, index.md, index.mdx and section.json files, and never into folders that start with a dot.
- The extension is disabled in untrusted workspaces.
Settings
theneo.apiDomain: base URL of the Theneo API for self-hosted or staging environments. Empty uses the region picked in the panel. User setting only.
theneo.appDomain: base URL of the Theneo web app for self-hosted or staging environments. Empty uses the region picked in the panel. User setting only.
theneo.previewTarget: where Preview on Theneo opens: browser (default) or panel, inside the editor.
Known issues
- With
theneo.previewTarget set to panel, the draft preview of some projects appears empty, because Theneo loads the sections with your browser session. The default, browser, does not have this problem.
- The live preview approximates Theneo's rendering. Branding, custom CSS, videos and Mermaid diagrams are shown on Theneo only.
Help
Requirements
VS Code 1.75 or newer, or an editor built on it such as Cursor. Deploying needs a Theneo account.