DASCO
Open app
Docs

Use DASCO from anywhere.

The app, the API and the redaction engine are the same thing. Redact locally, send placeholders, restore locally.

Quick start

Base URL, OpenAI-compatible:

base_url
base_url = "https://dasco.world/api/v1"

The same API also answers at https://api.dasco.world/v1. No key is needed to try it. Without an Authorization header you are on the free trial: 10 requests per IP per UTC day, free-trial models only, at most 600 output tokens and 6,000 characters in per reply. The trial also has a shared daily cap; when it runs out, sign in.

curl
curl https://dasco.world/api/v1/chat/completions \
  -H "content-type: application/json" \
  -d '{
    "model": "MODEL_ID",
    "messages": [{"role":"user","content":"Summarize the thread from [PERSON_1] about [EMAIL_1]"}]
  }'
# no key = free trial: 10 requests per IP per UTC day, free models only
# MODEL_ID: any id from GET https://dasco.world/api/v1/models

API

EndpointWhat it does
GET /modelsCurated chat models. price_in/price_out are what we charge per 1M tokens (provider cost + 10%), next to source_price_in/out. free_trial marks models usable without a key.
POST /chat/completionsOpenAI-compatible, streaming and non-streaming. Forwarded through one pooled key with provider data collection set to deny. Your IP and user agent are not forwarded.
POST /auth/nonce, /auth/verifyWallet sign-in: sign the returned message once, get a dsk_… key. Shown once, stored hashed.
GET /accountBalance, deposits and daily usage for your key.
POST /account/rotateIssue a new key, invalidate the old one.
GET /statsPublic counters shown on the site. Open it.

Node with the OpenAI SDK

node
import OpenAI from 'openai';
import { redactMessages, restore } from 'https://dasco.world/redact.mjs'; // or vendor the file

const client = new OpenAI({ baseURL: 'https://dasco.world/api/v1', apiKey: process.env.DASCO_KEY });

const { messages, map } = redactMessages([
  { role: 'user', content: 'Draft a reply to Maria Lopez <maria@acme.io>' },
]); // -> "Draft a reply to [PERSON_1] <[EMAIL_1]>", map stays in your process

const res = await client.chat.completions.create({ model: 'MODEL_ID', messages });
console.log(restore(res.choices[0].message.content, map));

Python

python
import os
from openai import OpenAI

client = OpenAI(base_url = "https://dasco.world/api/v1", api_key = os.environ["DASCO_KEY"])
# Python has no client-side redactor yet: the server's leak check redacts raw
# values in memory and reports them in the x-dasco-leaks response header.

redact.mjs

/redact.mjs is the engine the app uses: one ES module, no dependencies, no network calls. It runs in the browser and in Node. Exports:

  • redact(text, { custom?, skip?, map? }) → { redacted, spans, map }. Pass the previous map to keep tokens stable across a conversation.
  • redactMessages(messages, opts) → { messages, map, spans } for a whole chat history.
  • restore(text, map) puts the real values back into a reply.
browser
<script type="module">
  import { redact, restore } from 'https://dasco.world/redact.mjs';
  const { redacted, map } = redact('Call Maria Lopez on +44 7911 123456');
  // redacted: "Call [PERSON_1] on [PHONE_1]"
  // send `redacted`, then: restore(reply, map)
</script>

Vendor the file if you do not want to load code from us at runtime.

Headers

HeaderMeaning
x-dasco-placeholdersHow many [TYPE_n] tokens arrived in your request.
x-dasco-leaksRaw personal data our leak check found in your request, e.g. EMAIL:1,APIKEY:1. It is redacted server-side before forwarding, unless you send x-dasco-allow-raw: 1.
x-dasco-server-redacted1 when the leak check had to redact your request on the server.
x-dasco-cost-usdWhat the call cost you (non-streaming). Streaming replies carry it in the final usage chunk under dasco.cost_usd, next to placeholders, leaks and free_trial.

The server-side fallback sees your raw text in memory to redact it. Client-side redaction is the private path: then the raw values never leave your device.

Keys and balance

Sign in on /app with any browser wallet. Calls with a key are paid from your balance. You top it up by depositing USDG on Robinhood Chain through the DascoTab contract; the deposit is credited to the depositing wallet. Credits are an off-chain balance in our database. There is no withdrawal, so deposit what you plan to spend.

Deposits open when the DascoTab contract is deployed. Its address will be listed here and on /verify.

What is caught

Names (local name model plus heuristics), emails, phone numbers, 0x wallets, private keys, BIP-39 seed phrases, API keys (sk-, sk-ant-, sk-or-, ghp_, gho_, xoxb-/xoxp-, AKIA, AIza, hf_, glpat-, Bearer, JWT), Luhn-valid card numbers, mod-97-valid IBANs, internal URLs and URLs with secrets in the query, IPv4/IPv6, and @handles.

Not guaranteed: unusual or lowercase names, names that are also ordinary words, street addresses, identifying context without a name, and anything inside images or files. The app always shows the diff and lets you mark any word as private.

May be over-redacted: any 64-hex value, such as a transaction hash, is treated as a private key ([PRIVKEY_n]). Capitalised words next to a known first name can be taken for a surname. Click the word in the app to send it as-is.

Data we keep

  • Prompt and reply content: never stored, never logged.
  • Per call: model, token counts, cost, time, a hash of the key id. Rows older than 90 days are folded into daily totals.
  • Free trial: a per-IP counter for the current UTC day, used only for the limit.
  • Wallet sign-in: your address and a hash of your key.