DEV Community

Cover image for I built a real Mac app with Claude's new Install as app: one HTML file, no server, full AI backend
Space Devin
Space Devin

Posted on

I built a real Mac app with Claude's new Install as app: one HTML file, no server, full AI backend

On November 24, Anthropic shipped Install as app: any Claude artifact can become a Mac or Windows app with its own window, Dock icon and, if you allow it, access to your files and processes. The launch demos were small utilities. I wanted to know whether it could carry a real app, the kind with accounts, billing, a model picker, agents and a UI that feels native.

So I built one in an afternoon with Claude Code. It's called Deskmate:

  • Sign in with your Hypery account (device code, approved in your browser)
  • Pick which of your teams pays for usage
  • Search and chat with any of ~1,000 models
  • Ask for images in plain language, from any model
  • Let helper agents (planner, explorer, reviewer) work in parallel on bigger requests
  • Keep your chats in a native macOS sidebar

Deskmate in a native macOS window: two taco pictures from one prompt, chat history in the sidebar

The whole thing is one HTML file of about 730 lines, CSS and markup included. No server, no bundler, no Electron, no code signing, no app store. Updates ship by republishing.

Everything is open source: github.com/hyperyai/deskmate, including the Claude Code skill that made it possible, a probe page, all 22 findings and the CI.

This post is the long version: what Install as app actually gives you, every wall I hit, the code that got past each one, what it costs to run, and how to build your own.

What "Install as app" actually is

An artifact is a single web page Claude publishes for you. Install as app wraps that page in a real desktop window from the Claude desktop app. The interesting part is what the page can do once it's installed. It gets a desktop API:

const desktop = await claude.use('desktop');
// In the installed window:
desktop.fs            // read and write files
desktop.childProcess  // run programs (exec / spawn)
desktop.pty           // a real terminal
desktop.window        // title bar style, vibrancy, size
desktop.app.dock      // the Dock icon
// ...plus notifications, global shortcuts, floating windows
// and a menu bar item
Enter fullscreen mode Exit fullscreen mode

Anything risky sits behind a permission the person grants on first use: full-access (files and processes), overlay, shortcuts, notifications, menu-bar. You declare what you need in a small manifest tag in the page:

<script type="application/json" id="claude-artifacts-manifest">
  {"permissions": ["full-access"]}
</script>
Enter fullscreen mode Exit fullscreen mode

A few rules shape everything that follows:

  • Outside the installed window, desktop only has install. In a browser or Claude's artifact pane, the page can offer an "Install as app" button and nothing more.
  • Full access is only for apps you (or your org) made. People outside your org get the safer, reduced app.
  • Every published version asks for permissions again. That's a feature: an update can't silently gain new powers.
  • The artifact sandbox still applies. That one matters a lot, as you'll see in Step 2.

The real problem: a backend

A desktop UI is the easy part. The hard part of an AI app is everything behind it: who the user is, who pays, which models exist, how responses stream, how agents work, where chats live.

Artifacts do have a built-in way to call Claude (the sample capability), billed to the viewer's Claude plan. I wanted something different: real accounts, a team that pays per use, any model from any provider, and an agent runtime. That's what Hypery is. One OAuth client ID gives an app sign-in, teams, an OpenAI-compatible gateway to ~1,000 models, wallets and billing, and an agent SDK. The user's chosen team pays for what they use; the developer never handles API keys or cards.

The goal for this experiment was minimal code: Claude Code should understand Hypery well enough to build a great app from a short prompt.

Step 0: teach Claude Code the backend with a skill

Claude Code can't use an API it doesn't know. So before any app code, I wrote a skill: one Markdown page that Claude Code loads whenever a task matches its description. It's in the repo at skills/hypery/SKILL.md, and as llms.txt for any other agent.

It's short and practical. The top is a table that maps each need to an endpoint:

Need Use
Sign-in OAuth device flow: POST /api/oauth/device_authorization, then poll /api/oauth/token
Teams GET /api/auth/list_memberships; send x-hypery-active-organization-id on every call
Chat, agents, subagents @hyperyai/sdk/agents: createHyperyModel, runAgentLoop, createAgentRuntime
Images POST /api/v1/chat/completions with an image model and modalities: ['image', 'text']
Credits GET /api/wallet/state, per team
Models GET /api/v1/models?category=chat&limit=1000 (the default page is only 20)

Below that are copy-paste snippets for each piece and a section of Install as app specifics. Every line came from reading Hypery's docs and source, then testing against the live API. The skill grew as the build taught me things; the version in the repo is the final one, and it works for any app, not just this one.

Step 1: one prompt, one file

With the skill in place, a fresh Claude Code agent that had seen nothing else got this 88-word prompt:

Build "Deskmate": a desktop AI chat app as a single file, app/index.html, to publish as a Claude artifact and install with "Install as app". Use Hypery for everything (see the hypery skill). Sign in with Hypery (device code), show the user's name, sign out. Streaming chat with a model picker. Credits balance in the header. Draw a Dock icon. Make it look like a polished native Mac app, light and dark.

It came back with about 340 working lines: a device-code sign-in card, streaming chat, a model dropdown, a credits pill, light and dark themes, and a Dock icon drawn on a canvas. Claude Code published it as an artifact. Then came the first two surprises:

  1. There was no Install option. My Claude Desktop was a November 10 build; Install as app arrived on November 24. Updating fixed it.
  2. The Code tab's artifact pane can't install. You have to open the artifact in Claude Desktop's own artifact window and pick Install as app from its menu.

After that, it installed and signed in on the first try:

The first version, installed and signed in

Step 2: the sandbox wall, and a 40-line way through it

Here's the catch the demos don't mention: an artifact can't fetch() any other site, even when it's installed. The artifact's content security policy blocks it, so no backend can work that way.

But an installed app with full access can run programs. So the app runs curl. To keep everything else normal, I wrapped it as a drop-in fetch that returns a real, streamed Response:

// An installed artifact app can't fetch() other sites,
// but it can run curl.
function curlFetch(url, options = {}) {
  const { method = 'GET', headers = {}, body, signal } = options;
  const h = headers instanceof Headers
    ? Object.fromEntries(headers)
    : headers;

  const args = ['-sSNi', '-X', method, String(url)];
  for (const [name, value] of Object.entries(h)) {
    args.push('-H', `${name}: ${value}`);
  }
  if (body != null) args.push('--data-binary', '@-');

  const p = desktop.childProcess.spawn('curl', args);
  const enc = new TextEncoder();

  return new Promise((resolve, reject) => {
    let head = '';
    let ctrl;
    let started = false;
    let aborted = false;
    const stream = new ReadableStream({
      start: (c) => { ctrl = c; },
    });
    const fail = (err) => (started ? ctrl.error(err) : reject(err));

    // An abort must look like an abort, not a complete reply.
    signal?.addEventListener('abort', () => {
      aborted = true;
      p.kill();
      fail(new DOMException('Aborted', 'AbortError'));
    });

    p.stdout.on('data', (chunk) => {
      if (aborted) return;
      if (started) return ctrl.enqueue(enc.encode(chunk));

      // Until the headers are complete, collect output and look for
      // the blank line that ends each header block.
      head += chunk;
      while (!started) {
        const end = head.match(/\r?\n\r?\n/);
        if (!end) break;
        const block = head.slice(0, end.index);
        head = head.slice(end.index + end[0].length);

        const statusLine = block.split(/\r?\n/)[0];
        const match = statusLine.match(/^HTTP\/[\d.]+ (\d{3})/);
        const status = Number(match?.[1]);
        if (!status) {
          throw new TypeError(`Bad response: ${statusLine}`);
        }

        // Skip "100 Continue" and a proxy's
        // "Connection established" block.
        const proxy = /connection established/i.test(statusLine);
        if (status < 200 || proxy) {
          continue;
        }

        started = true;
        const responseHeaders = parseHeaders(block);
        resolve(new Response(stream, {
          status,
          headers: responseHeaders,
        }));
        if (head) ctrl.enqueue(enc.encode(head));
      }
    });

    p.on('close', () => {
      if (aborted) return;
      if (started) ctrl.close();
      else reject(new TypeError('Network request failed'));
    });

    if (body != null) {
      p.stdin.write(String(body)).then(() => p.stdin.end());
    }
  });
}
Enter fullscreen mode Exit fullscreen mode

This is spread out for reading; the version in the repo is the same logic in about 40 lines. The curl flags do the heavy lifting:

  • -i prints the status line and headers before the body, so the function can build a proper Response with the right status.
  • -N turns off buffering, so server-sent events stream token by token.
  • --data-binary @- sends the request body over stdin, so nothing sensitive ever appears in a process listing.

Three details came from code review, not from the first draft. 100 Continue and proxy CONNECT preambles are skipped instead of being mistaken for the response. Output that isn't HTTP at all rejects instead of hanging the app. And an abort errors the stream instead of closing it, so a stalled reply never looks like a finished one.

Because it returns a standard Response, every piece of code written for fetch works unchanged. That includes Hypery's SDK, which matters in Step 6.

Step 3: sign-in without redirects

OAuth redirects and desktop apps don't get along. You need a registered callback, a local web server or a custom URL scheme, and an artifact has none of those.

The device flow sidesteps all of it. The app asks Hypery for a short code, shows it, and opens a normal link in your browser. You approve there, and the app polls until a token arrives:

const start = await hy('/api/oauth/device_authorization', {
  form: { client_id: CLIENT_ID, scope: SCOPE },
});

// Show the code and a link to the approval page.
// A target="_blank" link opens the system browser.
$('#usercode').textContent = start.user_code;
$('#verify').href = start.verification_uri_complete;

let interval = start.interval || 5;

for (;;) {
  await new Promise((r) => setTimeout(r, interval * 1000));

  const t = await hy('/api/oauth/token', {
    form: {
      grant_type: 'urn:ietf:params:oauth:grant-type:device_code',
      device_code: start.device_code,
      client_id: CLIENT_ID,
    },
  });

  if (t.access_token) {
    save(t);
    break;
  }
  if (t.error === 'slow_down') {
    interval += 5;
  } else if (t.error !== 'authorization_pending') {
    // access_denied or expired_token
    throw new Error(t.error);
  }
}
Enter fullscreen mode Exit fullscreen mode

This is what you see in the browser: the app's name, the code to compare, and exactly what it's asking for.

Approving Deskmate's sign-in on hypery.ai

On the Hypery side, setup was one form: create an app, pick the scopes (read ai:chat ai:models billing:read), and turn on Sign in from other devices, which is off by default. The client ID is public, and no secret ships in the app.

Tokens expire, so every authenticated request goes through one helper. It refreshes a token five minutes before it expires, and if a request still comes back 401, it refreshes once and resends:

async function authFetch(url, init = {}) {
  const send = async () => {
    const given = new Headers(init.headers ?? {});
    const headers = Object.fromEntries(given);
    headers.authorization = `Bearer ${await token()}`;
    // hf is curlFetch in the installed app, plain fetch elsewhere.
    return hf(url, { ...init, headers });
  };

  const response = await send();
  if (response.status !== 401) return response;

  // A 401 means the request didn't run,
  // so sending it again is safe.
  await refresh();
  return send();
}
Enter fullscreen mode Exit fullscreen mode

The refresh itself is single-flight. On launch, the app loads your profile, teams, wallet and models at the same time. Without this guard, an expired token would trigger four refreshes at once, and with rotating refresh tokens, three of them would fail and sign you out:

let refreshing = null;

// Every caller shares the refresh that is already in flight.
// doRefresh() sends one refresh_token grant
// and saves the new tokens.
function refresh() {
  refreshing ??= doRefresh().finally(() => {
    refreshing = null;
  });
  return refreshing;
}
Enter fullscreen mode Exit fullscreen mode

Step 4: teams decide who pays

Every Hypery user belongs to teams: a personal one plus any organizations. Usage is billed to whichever team is named in the x-hypery-active-organization-id header. My other apps (PopCraft, Nihmbus, Dune) send it on every request, so Deskmate does too:

const { memberships } = await api('/api/auth/list_memberships');

// Show a team picker (the personal team appears as "Personal")
// and remember the choice. From then on,
// every authenticated call adds:
//
//   x-hypery-active-organization-id: <teamId>
Enter fullscreen mode Exit fullscreen mode

Pick a team in the toolbar and that team pays from then on. The balance next to it comes from /api/wallet/state for that team.

One thing I got wrong at first: some teams showed "0 credits" even though they could chat fine. Those teams use Hypery's default pay-per-use billing, which charges a card on file and always reports a balance of zero. Showing "0 credits" there is misleading, so now the app shows no balance for them, and only prepaid teams get a credits pill.

Step 5: a model picker for 1,000 models

The first version listed about 20 models. Hypery's /api/v1/models returns 20 by default; you have to ask for ?category=chat&limit=1000, which returns 984 chat models. That's exactly what Dune does.

A 984-item dropdown is useless, so I asked for a searchable combobox. The obvious tool is a native <input list> with a <datalist>. It works in Chrome. In the installed app window, the datalist popup never appears. The field looked like a dropdown and did nothing.

So the app draws its own list: an input, a filtered list of up to 80 matches, arrow keys and Enter. Each model gets a lowercase search key once, when the list loads, so typing "sonnet" or "gpt-5.5" filters instantly. Focusing the field shows your current model first, so pressing Enter by accident never switches you to whatever sorts first alphabetically.

Step 6: rebuild on the Hypery SDK, with agents and skills

The first version hand-wrote its streaming, its SSE parser and its error handling. That's exactly the code an SDK should own. @hyperyai/sdk ships an agents entry that is dependency-free ESM, so it loads straight from jsDelivr inside an artifact:

const SDK = 'https://cdn.jsdelivr.net/npm/@hyperyai/sdk@3.2.2'
  + '/dist/agents/index.js/+esm';

const {
  createHyperyModel,
  createAgentRuntime,
  runAgentLoop,
  orchestrationTools,
  execOrchestrationTool,
  BUILTIN_PROFILES,
  ORCHESTRATOR_GUIDANCE,
  parseOrchestrationSkill,
  chooseOrchestrationSkill,
  createOrchestration,
  indexedDbStore,
} = await import(SDK);
Enter fullscreen mode Exit fullscreen mode

(The app itself uses a plain import with the same URL; it's split here to fit. Artifacts require library versions pinned to a release at least two weeks old, which is why this is 3.2.2.)

The key is that the SDK's model call accepts a custom fetch:

const callModel = createHyperyModel({
  // curl underneath, token refresh on top
  fetch: authFetch,
  gatewayUrl: 'https://hypery.ai',
  token: () => token(),
  // the team that pays
  team: () => teamId,
  // whatever is picked in the toolbar
  model: () => modelId,
});
Enter fullscreen mode Exit fullscreen mode

That's the entire integration. Streaming, retries on a dropped stream and error codes all come from the SDK.

Agents that can start helpers

On top of callModel, the SDK has a full agent runtime. The main agent gets a task tool that starts helper agents, plus send_message, await_agent and friends to talk to them. The SDK ships planner, explorer, builder and reviewer profiles; Deskmate uses the three read-only ones. This is the wiring, simplified from the repo:

// The SDK's read-only helper profiles:
// planner, explorer and reviewer.
const helpers = BUILTIN_PROFILES.filter((p) => p.readOnly);

const runtime = createAgentRuntime({
  callModel,
  profiles: () => helpers,
  // Each helper runs on the model its role gets from the skill.
  childModel: (ctx) => orchOf(ctx).childModel(ctx.profile.model),
  childTools: () => [imageTool],
  execChildTool: (call, ctx) => runImageTool(call, turnOf(ctx)),
  childSystemPrompt: (ctx) => ctx.profile.instructions,
});

const outcome = await runAgentLoop({
  messages: [
    { role: 'system', content: `${SYSTEM}\n\n${orch.guidance}` },
    ...history,
  ],
  tools: [imageTool, ...orchestrationTools(runtime, helpers)],
  callModel: orch.callModel,
  advise: orch.advise,
  route: orch.route,
  execTool: (call) =>
    call.name === 'generate_image'
      ? runImageTool(call, turn)
      : execOrchestrationTool(runtime, call),
  // Finished helpers and their reports come back between rounds.
  drainNotifications: () => runtime.drainParentNotifications(),
  hooks: { onTextDelta: turn.text },
});
Enter fullscreen mode Exit fullscreen mode

Orchestration skills pick the models

Which model runs which role isn't hard-coded. It comes from orchestration skills: small SKILL.md files, the same format Nihmbus uses, which the SDK reads with parseOrchestrationSkill. Deskmate ships two (shown here with shorter descriptions):

---
name: auto-light
kind: orchestration
description: Everyday requests; helpers use a fast model.
modes: auto
swarm: anthropic/claude-haiku-5.5
swarm_effort: low
max_concurrent: 3
---
Do small requests yourself. For several images, call generate_image
once per image in the same turn.
Enter fullscreen mode Exit fullscreen mode
---
name: ultra-deep-work
kind: orchestration
description: Big requests; lead, swarm and advisor.
modes: ultra
lead: anthropic/claude-sonnet-5.5
swarm: anthropic/claude-haiku-5.5
advisor: anthropic/claude-opus-5.5
advisor_triggers: plan, done, error
max_concurrent: 6
---
Plan first: name the parts and what done looks like.
Fan out independent parts to helpers in parallel.
Enter fullscreen mode Exit fullscreen mode

The toolbar has an Off / Auto / Ultra switch. For each message, chooseOrchestrationSkill picks the skill that fits the mode, and createOrchestration turns it into a model per role.

While testing I asked a fair question: does picking a skill double the work? I checked the SDK source and counted calls with a scripted model:

Mode Model calls for "hi" Who runs
Off 1 your picked model
Auto 1 your picked model (helpers, if any, run on Haiku 5.5)
Ultra 4 Opus reviews the plan, Sonnet answers, Opus reviews the result, Sonnet finishes

Choosing a skill is free when only one skill fits a mode: the SDK returns it without asking a model. Ultra really does do 4× the work on a trivial message. That's the price of a plan review and a result review, and it pays off on big requests. The reply lists which skill and models ran, but only when a helper or the advisor actually did something, so simple answers stay clean.

Step 7: images are a tool, not a model choice

My first image test failed in an instructive way. An image model made the first taco just fine. Then I switched to Gemini 2.5 Flash and asked for two more, and it said it couldn't create images:

Before the fix: an image model made the first taco; a text model then said it couldn't

That's the wrong design: making an image shouldn't depend on which chat model you picked. PopCraft and Nihmbus solve this by giving the agent an image tool, so Deskmate does too:

const imageTool = {
  readOnly: true,
  spec: {
    type: 'function',
    function: {
      name: 'generate_image',
      description:
        'Create one image from a detailed prompt and show it '
        + 'to the user. For several images, call it several '
        + 'times in the same turn.',
      parameters: {
        type: 'object',
        properties: { prompt: { type: 'string' } },
        required: ['prompt'],
      },
    },
  },
};

async function generateImage(messages, model) {
  const r = await api('/api/v1/chat/completions', {
    json: {
      model,
      messages,
      // Image output can't be streamed.
      stream: false,
      // Without this, no image comes back.
      modalities: ['image', 'text'],
    },
  });

  // The images arrive as data: URLs.
  const { images } = r.choices[0].message;
  return images.map((img) => img.image_url.url);
}
Enter fullscreen mode Exit fullscreen mode

Two details come from Hypery's internals: image output only happens with modalities: ['image', 'text'], and it must not be streamed. The tool is marked read-only, so when the model calls it twice in one turn, the SDK runs both at once.

Now "make 2 pictures of tacos" on a plain text model becomes two parallel generate_image calls to gemini-3.1-flash-image, and both pictures land in the reply. That's the screenshot at the top of this post. Helpers have the tool too, so in Ultra an explorer can make images while the lead keeps working.

One object per reply

Helpers can finish after their reply is done, so every image has to know which reply it belongs to. Early versions routed this through global variables, and code review caught images landing in the next reply. The fix is one small turn object per reply that holds its bubble, streamed text, images and notes. Helpers remember the turn that started them:

function newTurn(bubble) {
  const turn = {
    // The chat this reply belongs to,
    // and whether the reply has finished.
    chatId,
    done: false,

    text(delta) {
      out += delta;
      schedulePaint();
    },

    show(urls) {
      const html = urls.map(imgHtml).join('');
      images.insertAdjacentHTML('beforeend', html);

      // A background helper's image can arrive
      // after the reply finished.
      const sameChat = chatId === turn.chatId;
      if (turn.done && sameChat) saveChat(turn.chatId);
    },

    note(text, activity) {
      notes.push(text);
      active ||= activity;
      schedulePaint();
    },
  };

  return turn;
}
Enter fullscreen mode Exit fullscreen mode

Step 8: make it feel like a Mac app

desktop.window takes Electron-style window options. Four of them do most of the work:

await desktop.window.setOptions({
  // Traffic lights float over the content,
  // centered in the sidebar's top bar.
  titleBarStyle: 'hiddenInset',
  trafficLightPosition: { x: 18, y: 19 },
  // The real macOS sidebar material, behind a transparent sidebar.
  vibrancy: 'sidebar',
  // Keep the native drag strip thin (see below).
  dragHeight: 10,
  width: 1040,
  height: 720,
});

// A Dock icon drawn on a 256 px canvas.
desktop.app.dock.setIcon(drawIcon(256).toDataURL('image/png'));
Enter fullscreen mode Exit fullscreen mode

The sidebar is transparent, so the window's actual sidebar material shows through, and the chat pane is solid. Chats are stored with the SDK's indexedDbStore: one record per chat, plus a small index the sidebar reads, so drawing the list never loads every image you've ever generated. Deleting a chat takes two clicks. Your name in the corner opens a menu with Open Hypery account and Sign out, and signing out clears that account's chats from the Mac.

The best bug of the build: after the sidebar change, nothing in the title bar was clickable. Not the compose button, not the sidebar toggle, not the model picker. The cause was dragHeight: 52. The drag strip is a native region across the top of the window, and it swallows every click inside it. CSS app-region: no-drag on the buttons doesn't cut holes in it. The fix was a 10px native strip and marking only empty spacer elements as app-region: drag. No control sits inside a drag region, so every click lands.

Step 9: treat it like real software

A file that grew from a dozen follow-up prompts gets messy. So before writing this, I put it through the same process as any codebase.

Two high-effort code reviews found bugs a demo would never hit:

  • Parallel requests could each spend the same rotating refresh token and sign you out.
  • curlFetch could hang forever on unexpected curl output, and broke behind an HTTP proxy.
  • An aborted stream looked like a finished reply.
  • A 401 halfway through an agent run re-ran the whole run, generating images twice and billing twice.
  • Signing out left the previous account's chats readable on the same Mac.
  • Deleting the open chat mid-reply brought it back when the reply finished.
  • A leftover CSS rule hid your own messages in narrow windows.

A cleanup pass came from four angles at once: reuse, simplification, efficiency and design. It replaced the global state with the turn object, moved all auth into authFetch, switched to the SDK's own error helpers and team header constant, stopped reading every saved chat just to draw the sidebar, and throttled wallet reads.

Lint and CI. The app is Biome-lint clean. scripts/check.mjs needs no dependencies; it checks that the page's script parses, five curlFetch edge cases (proxy, 100 Continue, bad status line, abort, no output) and the single-flight refresh. GitHub Actions runs both on every push:

steps:
  - uses: actions/checkout@v5
  - uses: actions/setup-node@v5
    with: { node-version: 22 }
  - run: node scripts/check.mjs
  - run: >-
      npx --yes @biomejs/biome@2.2.0 lint
      scripts/.app.mjs scripts/check.mjs
Enter fullscreen mode Exit fullscreen mode

One honest limit of the tooling: Claude's computer use treats an installed artifact app like a browser. It can take screenshots but can't click or type in it. So every check in the real app was me clicking while Claude Code read the screenshots, and the logic was tested in Chrome and Node against the live API.

The gotchas, all in one place

The full list of 22 is in docs/findings.md. These cost the most time:

  1. Update Claude Desktop. The November 10 build has no Install option.
  2. Install from the artifact's own window, not the Code tab's preview pane.
  3. fetch to other sites is blocked, even when installed. Full access plus curlFetch is the way through.
  4. Outside the installed window nothing can load. Show an install prompt there, not a sign-in button that can't work.
  5. dragHeight eats clicks. Keep it small and mark only empty space as draggable.
  6. <datalist> popups don't render in the installed window. Draw your own lists.
  7. Every republish asks for full access again, and the app shows a "new version, Reload" bar.
  8. Hypery's model list defaults to 20. Ask for category=chat&limit=1000.
  9. Pay-per-use teams always report 0 credits. Don't show a balance for them.
  10. Image models need modalities: ['image','text'] and no streaming. Better still, make images a tool.

Install as app vs. Tauri or Electron

PopCraft and Nihmbus ship with Tauri on the same Hypery backend, so this was a fair comparison:

Install as app Tauri / Electron
Ship an update Republish the artifact Build, sign, notarize, release
Distribution Share a link; people need Claude Desktop Download or app store
Native access Files, processes, terminal, tray, shortcuts, notifications (with permission) Everything
Network Through curl (needs full access) Normal
Full access for You and your org Anyone
Size of this app ~730 lines in one HTML file A project

Install as app wins for internal tools, team utilities, prototypes and anything you change daily: an update is one republish, and the app picks it up on its next reload. Tauri still wins for a public consumer product: anyone can install it, it doesn't depend on Claude Desktop, and nothing asks for permissions on every update.

Build your own

  1. Create a Hypery app. At hypery.ai, go to Your apps → Create app. Pick the scopes read ai:chat ai:models billing:read, add any redirect URL (for example http://127.0.0.1/callback), and turn on Sign in from other devices in Settings. Copy the client ID.
  2. Add the skill. Copy skills/hypery into your project's .claude/skills/.
  3. Prompt Claude Code in the Claude desktop app's Code tab. Describe your app, say it's a single-file artifact for Install as app with Hypery as the backend, and give it your client ID. Ask it to publish the page as an artifact with the desktop capability.
  4. Install it. Open the artifact in Claude Desktop, choose Install as app, and allow full access.
  5. Iterate. Ask for changes; each republish shows up in the installed app as a "new version" bar.

Or start from Deskmate itself: clone the repo, put your client ID in app/index.html, and publish it.

What I'd like next

  • Device-code sign-in in the Hypery SDK. It's the one piece Deskmate still hand-writes, about 15 lines.
  • llms.txt on hypery.ai, so any agent can find the skill without this repo.
  • Fewer permission prompts on republish for apps you made yourself.

Install as app is not a toy. With a backend that handles accounts, billing and models, and an SDK that takes a custom fetch, one HTML file is enough for a real, native-feeling AI app, and Claude Code can build most of it from a short prompt. The interesting work is in the details, and all of them are in the repo.

Top comments (0)