Runtime capabilities
The tables below list the current runtime capabilities of an application.
Publishing and deployment
| Capability | Status | Notes |
|---|---|---|
| Worker → version → deployment | Supported | Creating a version does not put it live; a deployment does. Set deploy: true when creating the version to do both in one step |
| Rollback | Supported | Create a deployment for an older version again; no files are re-uploaded |
| Whole-site replacement | Supported | Each version’s file manifest must list every file of the site; only files whose content changed are uploaded |
| Gradual rollout | Not supported | A deployment puts exactly one version at 100% |
| Retained versions | Limit | The latest 100 versions |
| Script size | Limit | 10 MiB compressed |
| Deployment timeout | Limit | A deployment that does not finish within 10 minutes fails |
Static assets
| Capability | Status | Notes |
|---|---|---|
| Content-addressed deduplication | Supported | Identical content is stored once; republishing does not upload it again |
| Paths and size | Limit | Up to 100000 files per version, 25 MiB per file |
html_handling | Supported | auto-trailing-slash, force-trailing-slash, drop-trailing-slash or none |
not_found_handling | Supported | none, 404-page or single-page-application |
_headers | Supported | Applies only to static asset responses; up to 100 rules, 2000 characters per line |
_redirects | Supported | Applies only to static asset responses; up to 2000 static and 100 dynamic rules, 1000 characters per line |
_headers and _redirects do not apply to responses your Worker code generates. For cross-origin access, set the CORS headers in code:
const CORS = { "access-control-allow-origin": "*", "access-control-allow-methods": "GET, POST, OPTIONS", "access-control-allow-headers": "content-type",};
export default { async fetch(request) { if (request.method === "OPTIONS") return new Response(null, { status: 204, headers: CORS }); return Response.json({ ok: true }, { headers: CORS }); },};Outbound requests
| Capability | Status | Notes |
|---|---|---|
| Public addresses | Supported | fetch() in your code can request any public address |
| Other applications on the platform | Supported | Requesting another application’s address returns that application’s response |
Bindings
| Type | Status | Notes |
|---|---|---|
d1 | Supported | Declared when creating a version |
kv_namespace | Supported | Declared when creating a version |
r2_bucket | Supported | Declared when creating a version |
secret_text | Supported | Declared when creating a version; the value is written through the secrets endpoint |
plain_text | Supported | Declared when creating a version |
json | Supported | Declared when creating a version |
praxis_token | Supported | The binding name must be PRAXIS_API_TOKEN; enables platform API access; no token is injected |
praxis_vault_ref | Supported | References a secret in one of your organization’s vaults; its value is read from the vault at every deployment and handed to the Worker as a same-named secret (see Vault secrets below) |
Other types (such as service, queue, durable_object_namespace, ai) | Not supported | Creating a version returns UNSUPPORTED |
Secrets
| Capability | Status | Notes |
|---|---|---|
| Write a secret | Supported | PUT /application/v1/workers/{id}/secrets/{name}. The write derives a new version from the current one and deploys it |
| Read a secret value back | Not supported | Values are write-only; no endpoint returns them |
Vault secrets
Write a secret with {"source":{"type":"vault","vault_id":"vlt_…","secret":"NAME"}}, or declare a praxis_vault_ref binding in a version, and the Worker reads the vault secret by the binding name, like any other secret.
- The value is read from the vault at every deployment: a new version, a rollback and a redeploy all take the current value. Storage keeps only the reference, never the value.
- Changing the value in the vault does not take effect by itself: deploy again (publish the version again, or write the secret once more).
- A vault secret limited to hosts (
allowed_hostsnot empty) cannot be referenced: once its value is inside a Worker it can no longer be limited to those hosts, so the deployment fails withVAULT_SECRET_HOST_BOUND. Use a secret without allowed hosts. - A deleted secret fails the deployment (
RESOURCE_NOT_FOUND) instead of shipping a version without it; an unreachable vault answersSERVICE_UNAVAILABLEand the deployment retries on its own. - Only the organization’s owner can deploy a version with a vault reference; a credential limited to some resources cannot.
Compatibility flags
| Capability | Status | Notes |
|---|---|---|
compatibility_flags | Supported | Pass them when creating a version; they take effect as given |
global_fetch_strictly_public | Always on | Added to every version and cannot be turned off; passing global_fetch_private_origin or no_global_fetch_strictly_public returns 400 |
Calling platform APIs
Declare this binding in the version you deploy:
{ "type": "praxis_token", "name": "PRAXIS_API_TOKEN" }When you deploy with praxis app publish, write "platform": true in praxis.jsonc and the deploy declares this binding for you.
Your application can call the platform API without an API key. The API address is https://api.deepraxis.com:
export default { async fetch() { return fetch("https://api.deepraxis.com/application/v1/workers"); }};Platform access reaches only the resources the application’s grants name, and nothing with no grant; with the organization grant the application has the same organization access as an API key of its owner organization (see “Limiting the resources an application can reach”). Resources of other organizations return not found. No token or secret is exposed to application code, and env.PRAXIS_API_TOKEN is not created. Without the binding, protected platform endpoints return 401 unless you supply your own valid credential. Other destination hosts are unchanged.
The Praxis SDK uses the same outbound path: omit apiKey and use the API address as its baseUrl. No SDK change is required. Existing applications must deploy a version with the binding to enable access. Removing the binding takes effect after the deployment becomes active and the routing cache refreshes (up to 10 seconds).
Limiting the resources an application can reach
An application’s platform access reaches only what its grants name; with no grant it reaches nothing, and an ungranted resource returns not found or 403. Create the specific grants it needs; to give it the whole of its owner organization’s access (the same as an organization API key), create an organization grant.
Applications created before 2026-11-25 that reached the platform with no grant were given the organization grant by the platform; their behaviour did not change.
Create a grant:
POST /application/v1/workers/{worker_id}/grants{ "resource": { "type": "database", "id": "<database id>" }, "access": "read" }The grantable types are the ones a service agent can bind:
resource.type | resource.id | access | What the application can do |
|---|---|---|---|
database | Database id | read / read_write | Read, or read and write, this database |
knowledge | Knowledge store id | read / read_write | Search, or write to, this knowledge store |
file | One file’s file-… id | read | Read this file |
media_library | Media library id | read / read_write | Read, or read and write, this library |
models | * | read | Call every model |
workflow | <namespace>/<name> | read | Run this workflow |
script | <namespace>/<name> | read | Run this script |
agent | The agent’s agent_… id | read / read_write | read: read the agent. read_write: also issue its customer grant codes (POST /customer/v1/grant_codes, every item of resources must be this agent’s) and manage its customers (list, revoke_tokens, block, unblock). Neither changes the agent or opens or reads its sessions |
application | Another Worker’s wkr_… id in the same organization | read / read_write | Read or manage that Worker, but never change its grants or deploy platform access into it; never itself |
ticket | * | read_write | Read and write your organization’s tickets; writes are signed agent:<worker_id>, with the permissions of an organization member |
search, browser, crm, canvas, cut, studio, ontology, workspace | * | read_write | Use the whole service |
media | * | read_write | Read the media libraries: list libraries, read an asset, mint a signed read link; no upload, edit, generation or deletion |
feedback | * | read | Read the organization’s feedback |
organization | * | read_write | Full authority, the same as an organization API key. Exclusive: it cannot be created while the application holds any other grant, and no other grant can be created beside it (GRANT_CONFLICT, 409) |
Billing, DevOps, Vault, sandboxes, shares, content and the customer directory (/customer/v1/customers) are reached only with full authority; there is no narrower grant for them. Existing files grants keep loading but can no longer be created and reach nothing; grant one file by its id with file.
A grant change takes effect within about 10 seconds; no redeployment is needed. Another organization’s resource and a missing one both return RESOURCE_NOT_FOUND (404).
Example: let an application issue customer sign-ins for one agent, without touching its database grants:
await praxis.application.workers.grants.create({ path: { worker_id: "wkr_…" }, body: { resource: { type: "agent", id: "agent_…" }, access: "read_write" },});Organization-only access
By default anyone who knows the address can open an application. When an internal tool (a dashboard, an operations console) is meant only for your organization, set the Worker to organization-only access: the platform stops non-members before the request reaches your code, members sign in with their platform account, and your code learns from a request header who the visitor is. You do not write a passcode cookie or a sign-in page.
Turn it on (only the organization owner’s full-authority credential may change it; a credential limited to bound applications is refused whichever value it sets, PERMISSION_DENIED):
await praxis.application.workers.update({ path: { worker_id: "wkr_…" }, body: { praxis: { access: "organization" } },});praxis.access is public (the default) or organization; workers.create accepts it too. You can switch back to public at any time.
- Default host only: it applies on
https://<app id>.app.praxisusercontent.com. The old<name>--<account>--appaddress answers 403. - Takes effect: within 10 seconds on every request.
What a visitor sees:
- A page visit (
GET/HEADwithtext/htmlinAccept) without a valid sign-in: 302 tohttps://account.deepraxis.com/app-access?app=<app id>&path=<original path>. A member already signed in to the platform comes straight back, path and query kept; anyone else signs in first. - Any other request (an API call,
fetch, a WebSocket): 401application/problem+jsonwhoselogin_urlis that address. - Not a member of the organization: a 403 page. A sign-in hop that expired or was used twice: a 403 page with a “sign in again” link.
- The sign-in is kept in the
__Host-praxis-accesscookie (HttpOnly) on the application’s host for 1 hour. After that a page visit runs the hop again, which a signed-in member does not notice. A person removed from the organization keeps access for at most 1 hour.
How your code knows the visitor: every admitted request carries x-praxis-access-jwt, an assertion the platform signed (JWT, EdDSA). A header of that name sent by the visitor is removed, and the __Host-praxis-access cookie is not forwarded to your code. Claims:
| Claim | Meaning |
|---|---|
sub | User id (usr_…) |
actor | human:<user id> |
app | The application id |
org | The organization that owns the application |
role | owner, admin or member |
name, email | When the account has them |
iss | https://account.deepraxis.com |
aud | praxis-app-access |
iat, exp, jti | Issued at, expiry (1 hour), assertion id |
The platform has already verified the signature, so decoding the payload is enough. To verify again (for example when you pass the assertion on to your own backend), use https://account.deepraxis.com/.well-known/jwks.json and check iss, aud = praxis-app-access, app = your application id and exp:
import { createRemoteJWKSet, jwtVerify } from "jose";const JWKS = createRemoteJWKSet(new URL("https://account.deepraxis.com/.well-known/jwks.json"));
export default { async fetch(request) { const { payload } = await jwtVerify(request.headers.get("x-praxis-access-jwt"), JWKS, { issuer: "https://account.deepraxis.com", audience: "praxis-app-access", }); return new Response(`Hello, ${payload.name ?? payload.sub} (${payload.role})`); },};Usage, limits and domains
Metering and billing
An application is metered on three items, billed after use with nothing held in advance:
| Item | How it is counted | Price |
|---|---|---|
| Requests | One for each run of your code; each application’s runs are summed into one record per UTC hour | Metered by use(See the live price) |
| CPU time | On the same record as requests, in milliseconds of CPU your code actually used | Billed per millisecond(See the live price) |
| App days | One for each deployed, undeleted application the organization has that day; one record per organization per day | Metered by use(See the live price) |
- A visit that never runs your code is not billed: when the address does not exist, or the application is deleted, not yet deployed or taken offline by the platform, the platform answers with a status page.
- A static asset hit is not billed: when the path matches a static asset uploaded with the version and the platform returns the file directly, your code does not run, so no request and no CPU time is counted. With
run_worker_first, or when no file matches and your code handles the request, it is billed as usual. - A request stopped for exceeding its CPU limit is still billed.
- Requests and CPU are posted about 5 to 10 minutes after the hour ends; app days after 00:05 UTC the next day.
- When you group organization costs by resource, requests and CPU appear under the application’s Worker id; app days belong to the whole organization and carry no resource id.
Limits
| Item | Status | Details |
|---|---|---|
| Monthly traffic and total requests | No cap | Metered per request; usage never takes an application offline by itself |
| CPU time per request | Limited | 1000 ms by default |
| Subrequests per request | Limited | 50 by default |
| Taking offline and restoring | Platform action | Only the platform can take an application offline; while it is offline, visits receive HTTP 451. Contact the platform to restore it |
Domains and certificates
| Item | Status | Details |
|---|---|---|
| Default address | Supported | https://<app id>.app.praxisusercontent.com, where the app id is an 8-character short id; the address is in the Worker’s subdomain.url |
| HTTPS certificate | Managed by the platform | A wildcard certificate covers *.app.praxisusercontent.com; the platform issues and renews it automatically, valid for 90 days, with nothing for you to do |
| Custom domains | Not supported | You cannot bind your own domain to an application yet |
Check the current certificate’s issuer and validity (replace <app id> with your application’s id):
echo | openssl s_client -connect <app id>.app.praxisusercontent.com:443 \ -servername <app id>.app.praxisusercontent.com 2>/dev/null | openssl x509 -noout -issuer -datesExpected: three lines, issuer=, notBefore= and notAfter=, with notAfter later than today.
Next steps
- Applications: where data lives and where to start publishing.
- Publish an application with the CLI:
praxis app create,publish,rollback. - Application API: every operation and error code.