SuperAPI AI Directory

OpenMagic

AI-powered coding toolbar for any web app. Injects a floating toolbar via reverse proxy, captures element context, previews diffs, and applies approved changes in real time.

Open website

About this tool

OpenMagic is an AI coding agent tool that injects itself into any web application as a floating toolbar, letting developers edit real source code directly in the browser.

Uses

  • Modify code in a running web application by clicking elements and describing the desired changes in natural language, without manually searching for files.
  • Perform one-click AI UI/UX design reviews that check hierarchy, spacing, contrast, accessibility, and consistency, and suggest fixes that match the brand style.
  • Safely edit real source code in the browser, with each change shown as a diff, verified by a build, and automatically rolled back and undoable if it breaks.
  • Adjust CSS, text, and attributes in real time with instant preview of the results, then push to the codebase.
  • Cover multiple frameworks and any LLM with the same AI coding tool.

Key capabilities

  • Inject the toolbar via a reverse proxy: OpenMagic is a single-port reverse proxy that sits between the browser and the dev server, injecting the toolbar script into the HTML response without modifying the project at install time.
  • Real source code editing with self-correction: every change goes through type checking/linting and runtime verification, with self-correction capability.
  • Visual element editor: supports real-time preview of CSS, text, and attributes.
  • AI UI/UX design review: one-click audit of hierarchy, spacing, contrast, accessibility, and consistency, with brand-consistent fix suggestions.
  • Plan mode: when enabled, lets the model first generate an implementation plan; after reviewing the plan, choose "Generate changes" to request a patch.
  • 14 providers, 70+ models: including OpenAI, Anthropic Claude, Google Gemini, xAI Grok, DeepSeek, and more. API keys remain on the server side and are not sent to the toolbar. The model list is internally labeled as live, cached, or static; live lists from cloud providers are cached for 12 hours, while local providers such as Ollama use a shorter cache so newly pulled models appear quickly. In settings, use "Test model" to verify a provider key/model combination; OpenMagic classifies common failures such as invalid keys, unavailable models, quota/rate limits, and provider errors.

How to use

  • Run npx openmagic in the project folder so it can find the source files and dev server. A proxied version of the app opens with the toolbar overlaid.
  • For permanent installation, install globally and then directlyRun openmagic.
  • On startup, OpenMagic checks npm and shows in one line whether a new version is available (with the update command for the corresponding launch method); the check can be disabled with OPENMAGIC_NO_UPDATE_CHECK=1.
  • Requires Node.js 20.19 or higher.
  • Stop with Ctrl+C, leaving no residue.
  • Settings are persisted in ~/.openmagic/config.json (the home directory, never in the project).
  • Using Ollama (free, local) is also possible as a provider.
  • Provides keyboard shortcuts and multi-repository support.

Use cases

  • Supports any framework that can serve HTML: on the JavaScript/TypeScript side there are React, Next.js, Vue, Nuxt, Angular, Svelte, SvelteKit, Astro, Remix, Solid, Qwik, Ember; on the server-side rendering side there are Django, Flask, Rails, PHP (Laravel, WordPress); on the static side there is plain HTML served by any HTTP server.

Limitations

  • localhost only: the proxy and WebSocket are bound to localhost and cannot be accessed from the network.
  • A random token is generated for each session, and the toolbar must authenticate before accessing any API.
  • Path sandbox: file operations are restricted to the configured root directory, and symlinks that escape the root directory are rejected.
  • API keys are stored locally and are not exposed to the browser or third parties.
  • Zero project modification: installation does not touch package.json, configuration files, or source code.
  • diff preview: AI-proposed changes are shown as a diff with approve/reject buttons, and are not applied automatically without consent.
  • Known limitations: origin changes can cause OAuth redirect URI, localStorage isolation, and Service Worker scope issues; a CSP set via a meta tag cannot be modified at the proxy layer, and may still block the toolbar from loading; the toolbar runs inside the proxied development page, so do not use it alongside untrusted third-party scripts; this is a development tool, do not deploy it to production.
  • The tool is MIT licensed and uses the BYOK model.

Contributing and updates

  • PRs are welcome: bug fixes, new providers, UI improvements, documentation. CONTRIBUTING.md contains an architecture overview, how to add a provider, and the PR process.