[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107954":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},107954,"kairos","finic-ai\u002Fkairos","finic-ai","Real time event intelligence, fraud and risk decisioning for financial behavior.","https:\u002F\u002Fkairos.finic.ai",null,"TypeScript",287,14,3,1,0,4,96,55.13,"Apache License 2.0",false,"main",true,[25,26,27],"customer-behavior","fraud-detection","fraud-intelligence","2026-11-10 20:23:18","2026-11-19 20:49:14","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fimages\u002Freadme\u002Fkairos-logo-dark.svg\">\n  \u003Cimg src=\"docs\u002Fimages\u002Freadme\u002Fkairos-logo.svg\" alt=\"Kairos\" width=\"270\">\n\u003C\u002Fpicture>\n\n\u003Cbr\u002F>\u003Cbr\u002F>\n\n[![License: Apache-2.0](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue.svg)](LICENSE)\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@finic-ai\u002Fkairos?label=npm%20%40finic-ai%2Fkairos)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@finic-ai\u002Fkairos)\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Ffinic-kairos?label=pypi%20finic-kairos)](https:\u002F\u002Fpypi.org\u002Fproject\u002Ffinic-kairos\u002F)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-join%20us-5865F2?logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.gg\u002F4zRwRCK6Mx)\n[![Kairos Cloud](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcloud-kairos.finic.ai-0f8a8a)](https:\u002F\u002Fkairos.finic.ai)\n\n[**Kairos Cloud**](https:\u002F\u002Fkairos.finic.ai) · [**Docs**](https:\u002F\u002Fkairos.finic.ai\u002Fdocs) · [**Discord**](https:\u002F\u002Fdiscord.gg\u002F4zRwRCK6Mx) · [**Finic**](https:\u002F\u002Ffinic.ai)\n\n\u003Cimg src=\"docs\u002Fimages\u002Freadme\u002Fkairos-experiments.gif\" alt=\"An agent's experiment in Kairos: the workflow with its data flow, the experiments on it, and the variant that won\" width=\"100%\"\u002F>\n\n\u003C\u002Fdiv>\n\n## Kairos is open-source, real-time fraud and risk decisioning\n\n[Kairos](https:\u002F\u002Fkairos.finic.ai) decides every sign-up, login, order, payment and payout as it happens, and keeps each decision with the signals behind it. It is an open-source alternative to Sardine, Sift, Riskified and SEON, with two things they don't have: **your coding agent tunes it**, and **decision models** catch fraud before you have the labels to train on.\n\n#### Decisioning\n\n- [Real-time decisions](docs\u002Fconcepts\u002Fdecisions.md): one call returns approve, step up, review or block, with a risk score and the reasons, from the subject's history, the devices, cards and addresses it shares with others, and the session.\n- [Workflows](docs\u002Fplatform\u002Fworkflows.md): ask a decision model, score with a model, branch, call webhooks, open cases, and decide again later.\n- [Queues and cases](docs\u002Fcase-management\u002Fqueues.md): review work for people, whose resolutions become labels.\n\n#### Agent-first\n\n- [MCP server](docs\u002Freference\u002Fmcp.md): Claude Code, Cursor or Codex read your decisions and build workflows, with every action recorded under its key.\n- [Experiments](docs\u002Fplatform\u002Fmodels.md): your agent proposes model variants, Kairos trains and tests them on your data, and the agent ships the winner.\n\n#### Decision models and traditional ML\n\n- [Grayson](https:\u002F\u002Ffinic.ai): Finic's decision model answers questions about each request in plain language. It works with few labels and reads unstructured data.\n- [Models](docs\u002Fplatform\u002Fmodels.md): logistic regression and gradient-boosted trees (XGBoost-compatible) on your numbers and Grayson's answers, trained in Kairos or uploaded.\n\n#### For developers\n\n- [SDKs](docs\u002Freference\u002Fclients\u002Ftypescript.md) for TypeScript (`@finic-ai\u002Fkairos`) and Python (`finic-kairos`), a [CLI](docs\u002Freference\u002Fclients\u002Fcli.md), an [HTTP API](docs\u002Freference\u002Fapi.md), and [self-hosting](docs\u002Fdeployment\u002Fself-hosting.md) with Docker.\n\n## An AI fraud ML engineer, always tuning on your data\n\nYou send Kairos what happens in your product: sign-ups, logins, orders, payouts, chargebacks. It decides each request (approve, step up, review or block) and keeps every decision with the signals behind it.\n\nWhat makes Kairos different is who tunes it. Connect Claude Code, Cursor, Codex or any agent over **MCP**, and the agent can do the work of a fraud ML engineer:\n\n1. **Build the workflow.** It defines what to decide, which questions to ask a decision model, and which fields to score.\n2. **Design experiments.** It proposes variants: a decision model alone, logistic regression on your numbers, gradient-boosted trees, a stack of them, or the decision model's answers combined with your numbers in one model.\n3. **Let Kairos run them.** The server trains each variant on your oldest labeled data, chooses on the next, and tests on the newest, then reports ROC-AUC, PR-AUC, the gain over a baseline with its 95% interval, and precision and recall at your thresholds.\n4. **Pick the winner and ship it.** The agent explains its choice, applies the variant as the workflow's next version, and comes back when new labels arrive.\n\n```text\nYou:     \"Our chargebacks went up. Find a better model for shopify_order and publish it if it wins.\"\nAgent:   designs six variants → create_workflow_experiment → reads the results →\n         \"Logistic regression on the order's numbers plus Grayson's answers wins: ROC-AUC 0.949 on validation,\n          0.930 on test. Publishing it as v6.\"\n```\n\n## Decision models and traditional ML, together\n\nKairos is built around [**Grayson**](https:\u002F\u002Ffinic.ai), Finic's decision model. You ask it questions in plain language (\"Does the shipping address look like a reshipper?\", \"Is this email throwaway?\") and it answers with calibrated probabilities. Decision models are strong where traditional ML is weak:\n\n- **Few labels.** Grayson works on day one, before you have the thousands of chargebacks a model needs to learn from.\n- **Unstructured data.** It reads descriptions, emails, names, addresses, notes and item titles, which a gradient-boosted tree can't.\n- **Explanations.** Every answer is a question you wrote, so every decision says why.\n\nTraditional models are strong where decision models are weak: they learn your own outcomes precisely, from your own numbers, and they cost nothing per decision. Kairos lets you combine both: Grayson's answers become features next to your fields in a **logistic regression** or **gradient-boosted trees** (XGBoost-compatible, trained in Kairos itself), and experiments tell you which combination wins on your data.\n\n\u003Cimg src=\"docs\u002Fimages\u002Freadme\u002Fkairos-decision.jpg\" alt=\"A decision in Kairos: the risk score, the outcome, and the signals Grayson found, each with its probability\" width=\"100%\"\u002F>\n\n## Get started\n\n### Kairos Cloud\n\nSign up at [**kairos.finic.ai**](https:\u002F\u002Fkairos.finic.ai). Create a sandbox environment, a secret key, and you're ready to send events.\n\n### Connect your agent\n\nIn the console, open **Settings › MCP**, turn on the tool groups your agent needs, and create a key. Then, in Claude Code:\n\n```bash\nclaude mcp add --transport http kairos https:\u002F\u002Fkairos.finic.ai\u002Fmcp --header \"Authorization: Bearer ksk_…\"\n```\n\nCursor, Codex and VS Code work the same way: see [MCP for agents](https:\u002F\u002Fkairos.finic.ai\u002Fdocs\u002Freference\u002Fmcp). Then ask your agent to look at your decisions, build a workflow, or run an experiment.\n\n### Send events and decide\n\n```bash\nnpm install @finic-ai\u002Fkairos      # or: pip install finic-kairos\n```\n\n```ts\nimport { Kairos } from \"@finic-ai\u002Fkairos\";\n\nconst kairos = new Kairos({ apiKey: process.env.KAIROS_API_KEY!, baseUrl: \"https:\u002F\u002Fkairos.finic.ai\" });\n\nawait kairos.defineAction(\"withdrawal\", {\n  subject: \"user\",\n  hold: \"Should this withdrawal be held because the account shows signs of fraud or takeover?\",\n});\n\nkairos.track(\"login\", { userId: \"user_42\", deviceId: \"dev_9\", ipCountry: \"GB\" });\n\nconst decision = await kairos.decide({ type: \"withdrawal\", userId: \"user_42\", usd: 900 });\n\u002F\u002F { decision: \"approve\" | \"step_up\" | \"review\" | \"block\", riskScore, reasons, … }\n```\n\n### Self-host\n\nYou need Node.js 22, pnpm 10 and a Grayson API key from [portal.finic.ai](https:\u002F\u002Fportal.finic.ai\u002Fkeys). No database to set up: the server starts its own Postgres.\n\n```bash\npnpm install\ncp .env.example .env     # set GRAYSON_API_KEY\npnpm kairos dev          # the API on http:\u002F\u002Flocalhost:8787 and the console on http:\u002F\u002Flocalhost:5273\n```\n\nFor your team, `docker compose up --build`. See [Self-hosting](docs\u002Fdeployment\u002Fself-hosting.md) and [Local setup](docs\u002Fdevelopment\u002Flocal-setup.md).\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>The CLI\u003C\u002Fb>\u003C\u002Fsummary>\n\n```bash\npnpm kairos signup                                                     # the local server, a new account\npnpm kairos login --profile prod --url https:\u002F\u002Fkairos.finic.ai --email you@example.com\npnpm kairos keys create \"My server\"                                    # a secret key for your code\npnpm kairos actions define withdrawal --data @withdrawal.json\npnpm kairos import events transactions.csv --type transaction --ts created_at --entity user=customer\npnpm kairos decide withdrawal -e user=user_42 -p usd=900\npnpm kairos workflows run review_payout -i user=user_42 --wait\npnpm kairos --help                                                     # every command\n```\n\nTo have `kairos` on your path, run `pnpm link --global` in `apps\u002Fcli`.\n\n\u003C\u002Fdetails>\n\n## Integrations\n\n- **Shopify:** decide every order, hold risky ones for review, and learn from chargebacks. To get the Kairos app for your store, reach the Finic team on [Discord](https:\u002F\u002Fdiscord.gg\u002F4zRwRCK6Mx) or at [support@finic.ai](mailto:support@finic.ai).\n- **Inbound webhooks:** take events from providers such as Stripe. See [Inbound webhooks](docs\u002Fplatform\u002Fwebhooks\u002Finbound.md).\n\n## Documentation\n\nThe docs are at [kairos.finic.ai\u002Fdocs](https:\u002F\u002Fkairos.finic.ai\u002Fdocs), and in [`docs\u002F`](docs\u002FREADME.md).\n\n|                                                                                                         |                                                                  |\n| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |\n| [Overview](docs\u002Fgetting-started\u002Foverview.md)                                                            | What Kairos does, how a decision is made, and what it does not do |\n| [Quickstart](docs\u002Fgetting-started\u002Fquickstart.md)                                                        | A first decision in a few minutes                                |\n| [MCP for agents](docs\u002Freference\u002Fmcp.md)                                                                 | Connect Claude Code, Cursor, Codex or VS Code                    |\n| [Models and experiments](docs\u002Fplatform\u002Fmodels.md)                                                       | Scoring models, and experiments that compare them               |\n| [Workflows](docs\u002Fplatform\u002Fworkflows.md)                                                                 | Triggers, steps, expressions and runs                            |\n| [Concepts](docs\u002Fconcepts\u002Fcore-concepts.md)                                                              | Entities, events, labels, links, actions, policies, decisions    |\n| [Import your history](docs\u002Fgetting-started\u002Fimport-history.md)                                           | Load existing events, customers and outcomes from files          |\n| [TypeScript SDK](docs\u002Freference\u002Fclients\u002Ftypescript.md) · [Python SDK](docs\u002Freference\u002Fclients\u002Fpython.md) | The two clients                                                  |\n| [API reference](docs\u002Freference\u002Fapi.md)                                                                  | Every HTTP endpoint                                              |\n| [Queues and cases](docs\u002Fcase-management\u002Fqueues.md)                                                      | Review work for people                                           |\n| [Self-hosting](docs\u002Fdeployment\u002Fself-hosting.md)                                                         | Docker, Postgres, migrations, configuration, security            |\n| [Working on Kairos](docs\u002Fdevelopment\u002Fdevelopment.md)                                                    | The repository, the server, the tests and the evaluation suite  |\n\n## The repository\n\n| Path                  | What it is                                                                 |\n| --------------------- | -------------------------------------------------------------------------- |\n| `apps\u002Fserver`         | The HTTP API and MCP server. Hono on Node.js, Postgres through Drizzle.    |\n| `apps\u002Fconsole`        | The web console. React and Vite.                                           |\n| `apps\u002Fcli`            | `kairos`, the CLI: starts Kairos, connects to a server, and calls its API. |\n| `packages\u002Fcore`       | The decision path, the model scorers and the tree trainer.                 |\n| `packages\u002Fsdk`        | `@finic-ai\u002Fkairos`, the TypeScript client.                                 |\n| `packages\u002Fsdk-python` | `finic-kairos`, the Python client.                                         |\n| `packages\u002Feval`       | The evaluation suite and the experiments.                                  |\n| `templates\u002F`          | Action definitions and event shapes to copy.                               |\n| `examples\u002F`           | Runnable scenarios, end to end.                                            |\n| `docs\u002F`               | The documentation.                                                         |\n\n```bash\npnpm test         # all tests; no network\npnpm test:python  # the tests of the Python SDK\npnpm typecheck\n```\n\n## Community\n\n- **Discord:** questions, ideas and show-and-tell, at [discord.gg\u002F4zRwRCK6Mx](https:\u002F\u002Fdiscord.gg\u002F4zRwRCK6Mx)\n- **Email:** [support@finic.ai](mailto:support@finic.ai)\n- **Contributing:** issues and pull requests are welcome. Read [Working on Kairos](docs\u002Fdevelopment\u002Fdevelopment.md) first.\n\n## License\n\nKairos is licensed under the [Apache License 2.0](LICENSE).\n","Kairos 是一个开源的实时金融行为风控与反欺诈决策引擎，面向支付、开户、登录等关键业务环节提供毫秒级风险判定。其核心支持实时决策（返回审批\u002F增强验证\u002F人工复核\u002F拦截结果及可解释性理由）、可编程工作流编排、基于历史行为与设备\u002F地址\u002F卡号关联图谱的风险建模，并创新性引入AI编码代理驱动的模型实验与迭代机制，支持少标签场景下的灰盒决策模型（Grayson）与传统机器学习（XGBoost兼容）混合部署。适用于金融机构、金融科技公司及SaaS平台在交易风控、账户安全与合规审查等高时效性要求场景。",2,"2026-11-24 04:33:04","CREATED_QUERY"]