For developers

The API, the CLI and the rules.

Everything Flinger does for a person in a chat, your code can do too: read the rules, check the files, put the app online, and find out why a build failed.

From code to live, in five calls.

  1. 01Read the rules

    GET /v1/capabilities: what runs, what's provided, and the rules that most often break deploys.

  2. 02Check the files

    POST /v1/preflight with the files. Fix every must_fix until the verdict is ready.

  3. 03Put it online

    POST /v1/fling. No account needed: you get a live link and a claim link for the person.

  4. 04Wait for live

    GET /v1/fling/{claim_id} until it's live, failed or claimed.

  5. 05If it failed, ask why

    GET /v1/fling/{claim_id}/doctor: the diagnosis, whose fault it is, the fix and the end of the log.

The API.

Base URL https://go.flinger.ai/api. Send User-Agent: flinger-skill with every call.

GET /v1/capabilitiesgetFlingerRules

What Flinger runs and provides, and the rules that most often break deploys. Read it before building. Auth: None.

curl -s "https://go.flinger.ai/api/v1/capabilities?format=text" -H 'User-Agent: flinger-skill'
POST /v1/preflightrunFlingerPreflight

What Flinger would do with these files, before anything is deployed. Fix every must_fix until the verdict is ready. Auth: None.

curl -s https://go.flinger.ai/api/v1/preflight -H 'User-Agent: flinger-skill' \ -H 'Content-Type: application/json' \ -d '{"files": {"index.html": "<h1>Hello</h1>", "FLING.md": "Runtime: static — one page"}}'
POST /v1/flingflingApp

Put the app online, no account needed. Returns a live link and a claim link for the person. Auth: Optional agent key, or the person's Flinger key in the body.

curl -s https://go.flinger.ai/api/v1/fling -H 'User-Agent: flinger-skill' \ -H 'Content-Type: application/json' \ -d '{"name": "salon-bookings", "built_with": "claude", "files": {"index.html": "…"}}'
GET /v1/fling/{claim_id}getFlingStatus

Is the app live yet, did the build fail, has it been claimed. Auth: X-Poll-Secret from the fling reply.

curl -s https://go.flinger.ai/api/v1/fling/$CLAIM_ID -H 'User-Agent: flinger-skill' \ -H "X-Poll-Secret: $POLL_SECRET"
GET /v1/fling/{claim_id}/doctorgetFlingDoctor

Why a deploy failed: the diagnosis, whose fault it is, the exact fix and the end of the log. Auth: X-Poll-Secret.

curl -s https://go.flinger.ai/api/v1/fling/$CLAIM_ID/doctor -H 'User-Agent: flinger-skill' \ -H "X-Poll-Secret: $POLL_SECRET"
POST /v1/agent/linklinkAgentAccount

A link for the person to open, to sign this agent in to their Flinger account. Auth: Optional agent key.

curl -s -X POST https://go.flinger.ai/api/v1/agent/link -H 'User-Agent: flinger-skill'
GET /v1/agent/megetAgentAccount

Is this agent's key tied to a person's account yet, and what does their plan allow. Auth: X-Flinger-Agent.

curl -s https://go.flinger.ai/api/v1/agent/me -H 'User-Agent: flinger-skill' \ -H "X-Flinger-Agent: $AGENT_KEY"
POST /v1/agent/unlinkunlinkAgentAccount

The person doesn't want that account used: stop flinging into it. Auth: X-Flinger-Agent.

curl -s -X POST https://go.flinger.ai/api/v1/agent/unlink -H 'User-Agent: flinger-skill' \ -H "X-Flinger-Agent: $AGENT_KEY"
GET /v1/agent/apps/{tenant_id}getAppStatus

Is an app that went into the person's account live yet. Auth: X-Flinger-Agent.

curl -s https://go.flinger.ai/api/v1/agent/apps/$TENANT_ID -H 'User-Agent: flinger-skill' \ -H "X-Flinger-Agent: $AGENT_KEY"
GET /v1/account/appsgetAccountApps

Check on any app in the person's account, any time: live, failed, its address. Auth: X-Flinger-Key (the person's key).

curl -s "https://go.flinger.ai/api/v1/account/apps?name=salon-bookings" -H 'User-Agent: flinger-skill' \ -H "X-Flinger-Key: $FLINGER_KEY"

From a terminal.

Install Flinger's skills once, then put any app folder online with one command. It checks the app, uploads it, waits until it's live, and prints the live address and a claim link.

curl -fsSL https://go.flinger.ai/api/v1/skills/install.sh | bashpython3 ~/.claude/skills/flinger-app-plan/scripts/fling.py <app-folder>
--doctor <app-folder>Why did it fail?

Explains a failed deploy.

--statusHas it been claimed?

Shows whether the app has been claimed yet.

--region eu|us|apacWhere the data lives

Sets the region for the app's database and files.

--secrets-file <file>Your own keys

Supplies the keys your app needs, from a file.

Calling a model from your own code.

  1. 01The instructions

    Send any-ai/instructions.md from flinger-chat.zip as the system message.

  2. 02The tools

    Pass tools/openai.json as the model's tools (tools/gemini.json for Gemini).

  3. 03Run what it asks

    When the model asks for a tool, run it with flinger_tools.run(tool_name, tool_arguments) and send the text back.

The model then asks a few questions, builds the app, checks it, puts it online and gives you the address and a claim link. Your API keys stay with you. The files: fling.md/install

What runs.

Node 22Express, Fastify, Next.js, Nuxt, SvelteKit, Astro, Remix
PythonFastAPI, Flask, Django, Streamlit
Staticplain HTML/CSS/JS, any framework that builds to files
Frontend buildsReact, Vue, Svelte, Solid

A Dockerfile overrides all of this and runs exactly as given. Full list, and what to build instead of what can't run: the capabilities contract

FLING.md, the one file.

One file at the root of your app tells Flinger how to treat it. Its first line says what kind of app it is.

Runtime: staticFiles only

A site that's just files.

Runtime: serverlessPages plus functions

Pages, with functions under api/.

Runtime: serverA process that keeps running

Name the start command on the same line, and make sure that exact script exists.

Optional lines: Output (the build folder), Routes: single-page, Health (a health check address), Embed: yes, and Cron for scheduled jobs.

Questions.

Do I need an account to use the API?
No. Putting an app online needs no account: the reply has a live link and a claim link for the person. An agent can also be linked to a person's account, so its apps go straight there.
Which languages and frameworks run?
Node 22 (Express, Fastify, Next.js, Nuxt, SvelteKit, Astro, Remix), Python (FastAPI, Flask, Django, Streamlit), static sites and frontend builds. A Dockerfile runs exactly as given.
What can't run?
Redis, background queues (BullMQ, Celery, Sidekiq), a persistent disk, and requests that take longer than about 30 seconds. Apps in Deno, .NET, Elixir, Java, Laravel, PHP, Ruby on Rails or Rust are refused at upload, with an explanation.
How do I check my app before deploying?
POST its files to /v1/preflight. It says what Flinger would do with them and lists every must_fix; fix them until the verdict is ready.
Where are the full rules?
In the capabilities contract at go.flinger.ai/api/v1/capabilities. It's generated from the platform's own code, so it's always current.

Building an AI tool?

Built something? Fling it.