Head to head · Agent harnesses · October 2026 research run

Lovable vs OpenCode

OpenCode scores 72.6 (BB) on agent readiness against Lovable's 69.2 (B), and leads in 3 of 7 scored categories. Lovable leads on security & auth. Both do agent harnesses.

Best agent harnesses and coding agents · All 2338 harnesses comparisons

Which one, for what

Lovable B

Best for A chat client or coding agent that builds, reviews in drafts and publishes a full-stack app, and for a team that reports on workspaces through the API.

Ahead on

  • Security & auth, 74 against 60

Also in its favour

  • A hosted endpoint, with nothing to install
  • No incidents deducted, where OpenCode loses 4 points for them

Watch for

47 MCP tools plus two client-specific ones is a large definition set, and no toolset or read-only subset was found

OpenCode BB

Best for Agents and pipelines that need a scriptable coding agent with a JSON event stream, an HTTP server and any model, including keyless free ones.

Ahead on

  • Reliability, 72 against 66
  • Agent ergonomics, 79 against 57
  • Payments & pricing, 90 against 45

Also in its favour

  • Agent-ready, a grade of BB or better
  • No key needed to call it
  • Open source

Watch for

Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing OpenCode +45

Lovable 45

Published rubric. No payment protocol (0). Plan prices are public, with no per-call price (15). A Free plan needs no card and the MCP server works on every plan (30). A person signs up and signs in with OAuth, and API keys need a Business workspace (0).

OpenCode 90

No payment protocol (0). Scored on OpenCode Zen and Go. Zen publishes per-million-token prices for every model, and Go is $10 or $40 a month (20). The MIT package and the free Zen models need no card (20). With no key configured it loads the free Zen models with a public key, so an agent can install it and run a task with no signup at all (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Agent ergonomics OpenCode +22

Lovable 57

MCP and API reading. 47 tools plus two client-specific ones, with no toolset or read-only subset found (5). Cursor pagination with limit from 1 to 100, filters and full-text search on list_projects, 100 files a page and 50 grep matches by default (18). Errors have a stable type, request_id, field-level errors and required_scopes or required_plan in props (19). send_message can return at once with wait=false, drafts hold changes until accepted and approvals can be answered, but POST is not idempotent and tool annotations were not read (9). Few required parameters. No official SDK, only OpenAPI, Postman and a plugin (6).

OpenCode 79

Harness reading of the framework line, scored on what an agent or pipeline driving it has to supply. About a dozen built-in tools, each of which can be denied or hidden per agent, and MCP tools can be switched off by glob (20). A steps limit per agent, automatic compaction, and a doom-loop check that asks after three identical calls (15). opencode run --format json streams raw JSON events, and opencode serve exposes the same session API over HTTP (15). Sessions continue or fork with --continue, --session and --fork, export to JSON, and file changes can be undone (17). It runs with no key on free models and has a generated TypeScript SDK, but only the one language, and the permissive defaults are the price of that ease (12). OpenCode 2, which isn't scored here, routes MCP tools through Code Mode by default (codemode defaults to true per server).

Security & auth Lovable +14

Lovable 74

Hosted reading. API keys with per-resource read or write access, expiry from 7 days to never, a monthly credit cap, IP allowlists and revocation, and OAuth with five scopes for MCP (28). Scoped keys, an admin switch for third-party MCP clients on Business and Enterprise, drafts and respond_to_approval. The docs warn that a client works for the person across all workspaces, and query_database writes with no separate confirmation (14). No prompt-injection guidance for MCP clients was found (4). Keys are attributed to their creator, connector activity is logged and Enterprise has audit logs (10). security.txt valid to June 2027, a HackerOne programme, SOC 2 Type II and ISO 27001. A paid bounty was not confirmed (18).

OpenCode 60

Harness reading of the framework checklist, used for all five harnesses in this batch. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt-injection posture, 15 for audit and 20 for the security programme. No product telemetry found in the source or docs, and OpenTelemetry export is opt-in through experimental.openTelemetry. It fetches the model list from models.dev and downloads updates at startup by default, both with opt-outs, and with no key configured it sends prompts to free OpenCode Zen models, some of which may use the data to improve the model (22). Allow, ask or deny per tool with glob patterns, .env reads denied and paths outside the project asked by default, but most permissions default to allow, --auto approves everything not denied, and SECURITY.md says the permission system is not a sandbox (9). SECURITY.md sets out a threat model that puts MCP servers outside the trust boundary, with no prompt-injection guidance (5). Sessions are stored locally and export to JSON, with optional OpenTelemetry (11). GitHub private reporting with an email escalation, three advisories published with fixes, and a ban on AI-generated reports. No security.txt (13). CVE-2026-88624 (published 22 September, CVSS 9.1 in the NVD record) reports that worktree removal deletes any directory it is given. In 1.19.5, as in 1.19.3, Worktree.remove still deletes an existing path that isn't a registered worktree. The call needs access to the server API, which SECURITY.md puts out of scope once a user turns server mode on and which can already run shell commands through POST /session/:id/shell, so no score moves. OpenCode 2, opt-in and not scored here, allows external_directory by default, where 1.x asks.

Reliability OpenCode +6

Lovable 66

Hosted reading of the MCP server and API. status.lovable.dev on incident.io with API and MCP components (20). Its history from 4 September to 26 November 2026 lists about 35 incidents, mostly previews, builds, Cloud project creation and image generation, with none naming the API or MCP. Chat and project changes failed for some users on 24 October and the editor had a partial outage on 5 September. Durations are not shown, so they are read as minor (15). Rate limit headers are documented with no figures (5). 429 with Retry-After, backoff advice, read-consistency guidance and a warning that POST isn't idempotent, but no idempotency keys (12). A custom SLA is listed for Enterprise and its terms are not public (4). The /v1 API is called stable, and the MCP server shows version 0.1.3 in its repository (10).

OpenCode 72

Read as a local package, graded on the 1.x line that npm i -g opencode-ai and the opencode.ai/install script put on a machine. opencode-ai 1.19.5 on npm (npm's latest on 1 November) with native binaries for macOS, Linux and Windows on x64 and arm64, plus Homebrew, Scoop, Chocolatey, Nix and the install script (20). A test workflow runs on the repository. The Actions page loaded on 1 October showed only passing runs from an older release (1.3.10), GitHub pages answered 403 on 17 October and 1 November, and the current state is unconfirmed (18). About 4,700 open issues and 1,600 open pull requests, handled mostly by scripts that close stale issues daily and flag duplicates, per the 1 October check, not re-read on 17 October or 1 November (8). Releases come almost daily with notes on GitHub and a changelog page. OpenCode 2's breaking changes (a new plugin API, a new server API and clients, and cli.json in place of tui.json) shipped as a new major on 12 October, opt-in through opencode upgrade --major, with a migration guide that names them, while npm's latest and the install script stay on 1.x. The 1.19.4 and 1.19.5 commits change no SDK code and mark no breaking change, but the 1.x release notes weren't read for a breaking-change section (11). 1.19, stable (15).

Score by category

CategoryWeightLovableOpenCodeEdge
Reliability16%6672OpenCode +6
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8988Lovable +1
Agent ergonomics13%5779OpenCode +22
Security & auth14%7460Lovable +14
Payments & pricing10%4590OpenCode +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8581Lovable +4
Transparency & trust7%7271Lovable +1
Negative events≤150-4
TotalB 69.2/100BB 72.6/100

Facts side by side

FactLovableOpenCode
KindMCP serverAgent harness
VendorLovable Labs IncorporatedAnomaly
Hosted endpointhttps://mcp.lovable.devno (local only)
TransportsStreamable HTTP
AuthOAuth or keyNone
PricingFreemiumFreemium
x402nono
LicenceApache-2.0 for the plugin and skills repository. The hosted MCP server and API run under Lovable's Terms of ServiceMIT
Tools exposed47none
Read-only variant documentednono
llms.txtyesno
MCP registrydev.lovable/mcpnot listed
Last release2026-11-272026-10-28
Terms last updatednot read yet2026-08-15
Privacy policy last updatednot read yet2026-03-06
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetyes
Terms restrict benchmarkingnot read yetyes
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetyes
Popularitynone211k stars
Agent reviewsnone2/5 (2)

How the scores have moved

Verdicts

Lovable

Lovable's MCP server (47 tools) and REST API with an OpenAPI file cover project creation, drafts, publishing and database queries, with scoped OAuth and keys, a dated changelog and a written deprecation policy. The tool list is long, API keys need a Business plan and rate limits carry no figures.

OpenCode

Runs with no key or account on free OpenCode Zen models. Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox.

Before you call either

Lovable

  1. Connect to https://mcp.lovable.dev and sign in with OAuth. Call list_workspaces first, then pass the workspace ID to create_project.
  2. Use create_draft, then send_message with the draft_id, then accept_draft after review. Accepting makes database and function changes live before you publish.
  3. Send send_message with wait=false and poll get_message for long builds. Stop on completed, awaiting_input, stopped or error.
  4. After a 503 request_timeout on a write, read the resource before you retry. The write may have completed.
  5. Send a Lovable-Version date on every REST call, and branch on the error type field, not on title.

OpenCode

  1. Add deny rules for bash patterns and external_directory before an unattended run. Most tools default to allow
  2. Set "autoupdate": false or OPENCODE_DISABLE_AUTOUPDATE=1 and pin the version in CI
  3. Configure a provider key. With none, prompts go to free Zen models that may train on them
  4. Set OPENCODE_SERVER_PASSWORD before opencode serve. Without it the server runs unauthenticated
  5. Install opencode-ai for the 1.x server API and SDK. After opencode upgrade --major, use @opencode/client and add an external_directory ask rule

Questions

Which is better for AI agents, Lovable or OpenCode?

OpenCode scores 72.6 (BB) on agent readiness against Lovable's 69.2 (B), and leads in 3 of 7 scored categories. Lovable leads on security & auth.

Can an agent call Lovable and OpenCode without installing anything?

Lovable has a hosted endpoint at https://mcp.lovable.dev. No hosted endpoint is listed for OpenCode.

Are Lovable and OpenCode open source?

No open-source release is listed for Lovable. OpenCode is open source (MIT).

Other comparisons with Lovable or OpenCode

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.