A Quick Tour

Where to Run Agentic AI

VS Code, terminal, desktop, web, mobile — six surfaces, one decision

by Claes Bäckman

Claude Code and Codex are the two main agentic AI systems for everyday research work. Both can read your files, run code, edit drafts, and iterate on a task until it's done. There are several different programs you can use to get started with agentic AI. The goal of this page is to help you navigate the different options. For a side-by-side comparison of the two systems themselves, see Codex vs Claude Code.

For installation guides for agentic AI in VS Code, see Claude Code and Codex.


VS Code

VS Code is an editor where you can write and run code, work in LaTeX, and keep your project files in view. Both Claude Code and Codex ship official VS Code extensions, where the AI sits in a side panel, sees the file you have open, can edit anywhere in the project, run code, view tables and figures, and inspect diffs before you accept them. If you want to see your files in the same editor, this is the surface to start with.

There is a learning curve to VS Code. The two guides on this site walk through that first day specifically for empirical research: Claude Code in VS Code and Codex in VS Code.

Terminal / CLI

Both systems also run as command-line tools: claude and codex in any shell. You point the CLI at a folder, describe what you want, and it edits files in place. Under the hood this is the same as the VS Code version, just without the editor wrapper. This is the natural fit for anyone already working in a terminal: cluster jobs, remote servers via SSH, headless scripts, or workflows that pipe AI calls into other tools.

Two practical cases where the CLI wins over VS Code:

Remote servers
SSH into a cluster and run the CLI there. Useful if your data lives behind a firewall (Statistics Denmark, secure research environments) and cannot be moved to your laptop.
Background runs
Long jobs you want to walk away from. The CLI can run for hours unattended — building a robustness table over twelve specifications, converting a folder of PDFs to markdown — and just leave you a diff to review.

Official docs: Claude Code CLI · Codex CLI.

Desktop apps

The Claude desktop app (Mac and Windows) and the ChatGPT desktop app are the chat-style interfaces most people first encounter. Claude Desktop now also has Cowork and Code tabs: Cowork for longer background tasks, and Code for starting a Claude Code session on a folder or repo.

The Claude desktop app showing the Chat, Cowork, and Code tabs at the top of the sidebar, with a list of recent sessions on the right.
The Claude desktop app — Chat for plain conversation, Cowork for background agent work, and Code for spawning a Claude Code session on a folder or repo.

OpenAI also ships a dedicated Codex desktop app. It is closer to Claude's Code tab than to ordinary chat: it is built for working on coding threads in parallel, reviewing diffs, and managing Git-backed changes. Desktop apps are useful when you want a focused AI workspace without living inside VS Code or the terminal.

For quick conversations and drafting, the ordinary Claude or ChatGPT chat surface remains easiest. For sustained editing, use the Code/Codex desktop surfaces or an IDE; the chat-only surfaces are the ones that become hard to track once many files and diffs are involved.

Web / browser

For ordinary chat, the browser versions at claude.ai and chatgpt.com are close to the desktop chat apps. The exception worth knowing about is that both vendors now run long-running cloud agents from the web — claude.ai/code and chatgpt.com/codex. You point them at a GitHub repository, describe the task, and the agent works in a cloud container for minutes or hours before pushing a branch or opening a pull request you can review and merge.

Cloud agents are useful in three situations: when your work laptop blocks software installs (common at central banks and statistical agencies), when you want to kick off a job from a borrowed machine, and when you want several independent attempts at the same task running in parallel. They are not useful when the data lives only on your laptop or inside a secure environment — the cloud agent can't see it.

Mobile apps

Claude and ChatGPT both have iOS and Android apps. You will not edit a Stata script on a phone. But two patterns work well: capture — dictate an idea, a literature note, or a draft paragraph while walking — and monitor — kick off a cloud agent from your laptop in the morning, then approve or redirect it from your phone over coffee. Voice input on either app is good enough that talking through a paper's argument and getting structured notes back is now genuinely practical.

The mobile apps also pair with the cloud agents above: you can review a pull request, leave a comment, and ask the agent to revise, all without opening a laptop.

Other editors (Cursor, JetBrains, Zed)

If you already work in another editor, you don't have to switch to VS Code. Cursor is a VS Code fork built around AI from the ground up; JetBrains IDEs (PyCharm, IntelliJ IDEA, WebStorm, etc.) have first-party Claude Code and Codex integrations; and Zed is a fast editor where you can run the CLIs from the integrated terminal. The agentic experience is broadly similar in Cursor and JetBrains, while Zed is closer to the terminal workflow.

Practically: if you live in PyCharm for Python work or already use Cursor for a side project, you can keep your editor and add Claude Code or Codex on top. If you use Zed, start with claude or codex in the project root. If you have no strong preference, VS Code remains the path of least resistance — it is what most documentation, screenshots, and shared workflows assume.


Which surface for which task

A rough cheat sheet. None of the surfaces are mutually exclusive — most researchers end up using two or three, picking whichever fits the moment.

Surface
Best for
When not to use
VS Code
Daily coding, paper writing, anything where you want a real editor and a diff view.
Quick conversational work — overkill for "explain this paragraph to me."
Terminal
Remote servers, secure data environments, long unattended jobs, scripting AI into pipelines.
If you are not already a terminal user — the learning curve isn't worth it just for AI.
Desktop app
Focused AI workspace, visual diff review, parallel coding sessions, and quick drafting.
When you need a full editor around the agent, or when the work must run on a remote/secure server.
Web
Borrowed machines, locked-down laptops, kicking off cloud agents on a GitHub repo.
Data that cannot leave your machine or a secure environment.
Mobile
Capturing ideas on the move, reviewing or redirecting cloud agents, voice notes.
Any actual editing — phones are for triage, not for work.
Other IDEs
Sticking with the editor you already know (PyCharm, Cursor, Zed).
If your editor only gives terminal access and you want rich diff review, use VS Code or a desktop app.
A reasonable starting point. Install Claude Code or Codex inside VS Code for daily editing, keep the desktop app open for drafting and exploration, and learn the CLI once you have a job that needs to run on a server or in the background. The web and mobile surfaces are useful additions but not where most of the work happens.
Two cautions, regardless of surface. First, never paste data subject to a confidentiality agreement (administrative registers, restricted samples) into a cloud agent or web chat — local-only surfaces are the right tool there. Second, the AI's confidence is not calibrated; verify regression results, citations, and identification claims yourself before they enter a draft.