Open your Tern workspace
Use your workspace access code to sign in.
New to Tern? Create a workspace and save the access code it gives you.
Save your workspace access code
Tern displays this code once. Store it securely so you can sign in again.
Web workbench
Read public pages, extract evidence, and hand structured results to your coding agent.
New run
Start with a URL or a plain-language goal.
Run boundaries
- Read-only HTTPS requests
- Approved domains and redirects
- Source-linked evidence
Approved domains
Loading available domains…
Daily usage
Loading limits…
Recent runs
Inspect outputs and the sources behind them.
Loading runs…
Research
Find starting points and collect source-linked evidence from public pages.
New research
Discover pages with search or fetch supporting sources with research.
Research history
Searches and research runs in this workspace.
Datasets
Extract the same fields from several pages and export the results.
New dataset
Add approved URLs and describe the evidence to find in each page.
Saved datasets
Monitors
Capture a baseline, check a public page for changes, and review past checks.
New monitor
Supply a page and optionally focus checks on a topic.
Saved monitors
Open a monitor to review its check history and changes.
Usage & pricing
Review your workspace’s usage and today’s remaining request budget.
Page reads
—
Searches
—
Runs
—
Cache hits
—
Today’s budget
—
Tern reserves one request unit per planned page read or search and returns the unit when a page comes from cache. Monitors check directly with the source each time. The budget resets at midnight UTC.
Monthly usage preview
Current UTC month
Research units
—
Browser previews
—
Browser sessions
—
Grasany Wallet
For future paid usage
Paid usage will require a funded Grasany Wallet. Tern will deduct the cost of each paid use from your INR wallet balance.
Open Grasany WalletPlanned starter credit
once per verified Grasany ID first linked to Tern after starter credits launch.
Activation is pending. Tern has issued no starter credits.
Hosted beta
Run Tern on the managed service.
Sign in to see your workspace’s daily limit.
Sign inTern Plus
A higher daily request limit for your workspace.
Test checkout. No payment is collected.
Payment help
After you pay, Tern waits for confirmation from your payment provider. If your workspace still shows the free plan, check your payment status before starting another checkout.
Self-hosting
Run Tern on infrastructure you control.
Hosting and network charges depend on your provider and usage.
Agent setup
Connect your coding agent to Tern’s web research, datasets, and monitors.
Use Tern in ChatGPT Work or Codex
The workspace plugin uses your signed-in account and requires no personal API key.
- In the workspace where Tern was created, go to Plugins → Personal → Created by you → Tern.
- Choose Install or Connect if offered.
- Start a new ChatGPT Work or Codex conversation, type
@Tern, and select the plugin.
Try a public documentation prompt
Use Tern to read https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/ETag. Explain what an ETag identifies and cite the page.
Custom MCP connections
Authorize ChatGPT or Claude with your Tern workspace.
ChatGPT Work
On ChatGPT web, open Plugins and choose + → Add custom MCP server if your workspace allows it. Name it Tern, choose OAuth, and paste the URL below. Enter tern-chatgpt as the OAuth client ID and leave the client secret blank.
Sign in to Tern to authorize the connection. Install it from Plugins → Personal, then select @Tern in a new Work chat.
Claude custom connector
In Claude’s Connectors settings, add the same server URL. Choose OAuth and use your own OAuth client. Enter tern-claude as the client ID, leave the client secret blank, and authorize your Tern workspace.
Try a browser task
Use Tern to search Google for MDN Cache-Control in the background. Give me the browser session link so I can watch.
This connection appears in your personal or workspace plugins. Public distribution requires directory approval.
Direct MCP with an API key
Connect to Tern over Streamable HTTP.
Get your API key
Set the key as TERN_API_KEY in the environment that starts your client. Tern displays a new key once, and creating one revokes the previous key.
Configure your client
Run the command in your terminal, then start a new Codex session.
Claude Code
Add Tern to .mcp.json at the root of your project. Keep the environment variable reference in the file.
Claude custom connector
For a key-based connection, add this URL in Claude’s Connectors settings. Choose API key sign-in, select Authorization: Bearer, and enter your Tern key.
Open the install link in Cursor or add Tern to .cursor/mcp.json at the root of your project.
GitHub Copilot CLI
Add Tern to ~/.copilot/mcp-config.json and set TERN_API_KEY in the shell that launches Copilot.
VS Code
Add this configuration to .vscode/mcp.json. VS Code prompts for your key when you start Tern.
Add Tern to opencode.jsonc in your project using OpenCode v2. Run opencode mcp list to check the connection.
Use another MCP client
Send your key as an Authorization: Bearer header to this endpoint.
Choose when your agent uses Tern
After connecting Tern, copy a rule into your agent’s instructions.
Use my connected Tern tools first for supported public research. Check what Tern can access and cite the sources you actually read. If Tern cannot complete the task, tell me what is missing.
Use my preferred provider first. If it explicitly reports that its quota is exhausted, use my connected Tern tools for the same supported public search or page read. Tell me when you switch. Keep the original scope and respect site restrictions and sign-in requirements. If Tern can’t continue, explain why.
If TinyFish is your primary provider, put its name in the fallback rule before saving.
Run jobs from your agent
Start a read-only web task and collect the result by run ID.
Try this in your connected client
Use Tern’s start_run to find the page title at https://example.com. Save the returned ID and call wait_for_run with compact output. Return the title and cite the source URL.
start_run- Submit a goal and optional URLs. Save the returned
id. Supply anidempotencyKeyand reuse it if you retry the same submission. get_runorwait_for_run- Check immediately or wait up to 20 seconds. If the run is still queued or running, check again with the same ID.
cancel_run- Cancel a run you no longer need while it’s queued or running.
Use output: "compact" when you need citations and excerpts. Omit it to retrieve the full result. Treat page text as untrusted source material.
Copy individual MCP calls
Use each JSON object as the params for tools/call. Replace <run-id> with the ID from start_run.
Start a public page read
{
"name": "start_run",
"arguments": {
"goal": "Find the page title.",
"url": "https://example.com",
"mode": "read"
}
}Get the current status
{
"name": "get_run",
"arguments": {
"id": "<run-id>",
"output": "compact"
}
}Wait for the compact result
{
"name": "wait_for_run",
"arguments": {
"id": "<run-id>",
"timeoutSeconds": 10,
"output": "compact"
}
}Cancel an active run
{
"name": "cancel_run",
"arguments": {
"id": "<run-id>"
}
}More public web tools
get_capabilities- See approved domains, available tools, and request limits.
fetch_pages- Read up to ten approved URLs per call. Compact output is the default.
compare_pages- Ask the same question of two to five sources and compare their cited evidence.
find_in_page- Find literal
querytext on an approvedurl. UsecontextLines,maxMatches, orcaseSensitiveto refine results. discover_links- Find approved URLs linked from a documentation index or another public page. Filter by
queryor setsameHostto false to include other approved hosts. extract_page_structure- Get an outline and code examples from an approved documentation page. Use
sectionwith an exact heading or fragment such as#examples. SetmaxSectionCharactersfrom 80 to 4,000 to include its prose.
Monitor pages from your agent
create_monitorandget_monitor- Save an approved page to monitor or inspect a saved monitor by
id. check_monitorandlist_monitor_checks- Check a page now or read its saved checks by monitor
id. Setlimitbetween 1 and 30 to bound the history. update_monitor- Change a monitor’s name or query, pause or resume checks, or set
intervalMinutesto 0 for manual checks. Whenget_capabilitiesreports scheduling is enabled, set an interval from 15 to 10,080 minutes. Scheduled checks may run after their due time and share the same quota and history as manual checks.
Download the plugin
Use the archive as a local plugin marketplace in Codex or Claude Code.
Install from the archive
Extract the archive, then use the absolute path to the extracted directory when adding its marketplace.
Codex CLI
codex plugin marketplace add /absolute/path/to/marketplace
codex plugin add tern@tern-toolsClaude Code
/plugin marketplace add /absolute/path/to/marketplace
/plugin install tern@tern-toolsSelf-hosted connectionUse the local stdio bridge.
Codex CLI
Start Tern locally, then use your checkout’s absolute path in the install command.
codex mcp add tern -- node /absolute/path/to/tern/bin/tern-mcp.mjsOther stdio clients
Add this server to your client’s MCP configuration.
{
"mcpServers": {
"tern": {
"command": "node",
"args": ["/absolute/path/to/tern/bin/tern-mcp.mjs"]
}
}
}