Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Spending: list prices for the current GPT-6, Gemini 4 and Cursor models
laijsg1861818914e74
diff --git a/server/model-manifest/model-manifest.json b/server/model-manifest/model-manifest.jsonindex 2db2fb2d19..0efb4c9913 100644--- a/server/model-manifest/model-manifest.json+++ b/server/model-manifest/model-manifest.json@@ -1,6 +1,6 @@{"version": 1,- "updatedAt": "2026-11-17T12:30:00Z",+ "updatedAt": "2026-11-20T07:30:00Z","engines": {"claude": {"default": "claude-sonnet-5",@@ -170,6 +170,48 @@}},"prices": {+ "gpt-6-luna": {+ "inputPerMillion": 0.1,+ "cachedInputPerMillion": 0.01,+ "outputPerMillion": 0.5,+ "asOf": "2026-11-20",+ "source": "https://developers.openai.com/api/docs/pricing"+ },+ "gpt-6-sol": {+ "inputPerMillion": 2,+ "cachedInputPerMillion": 0.2,+ "outputPerMillion": 10,+ "asOf": "2026-11-20",+ "source": "https://developers.openai.com/api/docs/pricing"+ },+ "gpt-6.2-astra": {+ "inputPerMillion": 8,+ "cachedInputPerMillion": 0.4,+ "outputPerMillion": 40,+ "asOf": "2026-11-20",+ "source": "https://developers.openai.com/api/docs/pricing"+ },+ "gpt-6.2-sol": {+ "inputPerMillion": 2,+ "cachedInputPerMillion": 0.1,+ "outputPerMillion": 10,+ "asOf": "2026-11-20",+ "source": "https://developers.openai.com/api/docs/pricing"+ },+ "gpt-6.1-sol": {+ "inputPerMillion": 2,+ "cachedInputPerMillion": 0.1,+ "outputPerMillion": 10,+ "asOf": "2026-11-20",+ "source": "https://developers.openai.com/api/docs/pricing"+ },+ "gpt-6.1-terra": {+ "inputPerMillion": 1,+ "cachedInputPerMillion": 0.05,+ "outputPerMillion": 5,+ "asOf": "2026-11-20",+ "source": "https://developers.openai.com/api/docs/pricing"+ },"gpt-6-astra": {"inputPerMillion": 10,"cachedInputPerMillion": 1,@@ -324,6 +366,50 @@"asOf": "2026-09-23","source": "https://ai.google.dev/gemini-api/docs/pricing"},+ "gemini-4-neon": {+ "inputPerMillion": 3,+ "cachedInputPerMillion": 0.15,+ "outputPerMillion": 15,+ "asOf": "2026-11-20",+ "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing"+ },+ "gemini-4-argon": {+ "inputPerMillion": 2,+ "cachedInputPerMillion": 0.1,+ "outputPerMillion": 10,+ "asOf": "2026-11-20",+ "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",+ "changes": [+ {+ "from": "2026-12-01",+ "inputPerMillion": 4,+ "cachedInputPerMillion": 0.2,+ "outputPerMillion": 20+ }+ ]+ },+ "gemini-4-carbon": {+ "inputPerMillion": 2,+ "cachedInputPerMillion": 0.1,+ "outputPerMillion": 10,+ "asOf": "2026-11-20",+ "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing",+ "changes": [+ {+ "from": "2026-12-01",+ "inputPerMillion": 4,+ "cachedInputPerMillion": 0.2,+ "outputPerMillion": 20+ }+ ]+ },+ "gemini-4-hydrogen": {+ "inputPerMillion": 1.5,+ "cachedInputPerMillion": 0.075,+ "outputPerMillion": 7.5,+ "asOf": "2026-11-20",+ "source": "https://cloud.google.com/vertex-ai/generative-ai/pricing"+ },"gemini-3.8-flash": {"inputPerMillion": 0.75,"cachedInputPerMillion": 0.075,@@ -520,6 +606,20 @@"outputPerMillion": 1.2,"asOf": "2026-09-23","source": "https://openrouter.ai/api/v1/models"+ },+ "composer-2.5": {+ "inputPerMillion": 0.5,+ "cachedInputPerMillion": 0.2,+ "outputPerMillion": 2.5,+ "asOf": "2026-11-20",+ "source": "https://cursor.com/docs/models-and-pricing"+ },+ "composer-2.5-fast": {+ "inputPerMillion": 3,+ "cachedInputPerMillion": 0.5,+ "outputPerMillion": 15,+ "asOf": "2026-11-20",+ "source": "https://cursor.com/docs/models-and-pricing"}}}diff --git a/server/model-prices.test.ts b/server/model-prices.test.tsindex 2ad201f65a..42bf8b9f2a 100644--- a/server/model-prices.test.ts+++ b/server/model-prices.test.ts@@ -7,6 +7,8 @@ const OFFICIAL = ["https://platform.claude.com/","https://docs.x.ai/","https://ai.google.dev/",+ "https://cloud.google.com/",+ "https://cursor.com/","https://platform.minimax.io/","https://openrouter.ai/",];@@ -36,6 +38,21 @@ describe("built-in list prices", () => {expect(listPriceFor("gemini-3.8-flash", new Date("2027-01-01T00:00:00Z"))).toEqual({ inputPerMillion: 1.5, cachedInputPerMillion: 0.15, outputPerMillion: 7.5 });});+ it("prices the current OpenAI, Gemini and Cursor models", () => {+ expect(listPriceFor("gpt-6.1-terra")).toEqual({ inputPerMillion: 1, cachedInputPerMillion: 0.05, outputPerMillion: 5 });+ expect(listPriceFor("gpt-6.2-astra")).toEqual({ inputPerMillion: 8, cachedInputPerMillion: 0.4, outputPerMillion: 40 });+ expect(listPriceFor("gemini-4-neon")).toEqual({ inputPerMillion: 3, cachedInputPerMillion: 0.15, outputPerMillion: 15 });+ expect(listPriceFor("gemini-4-hydrogen")).toEqual({ inputPerMillion: 1.5, cachedInputPerMillion: 0.075, outputPerMillion: 7.5 });+ expect(listPriceFor("gemini-4-argon", new Date("2026-11-30T23:00:00Z"))?.inputPerMillion).toBe(2);+ expect(listPriceFor("gemini-4-argon", new Date("2026-12-01T00:00:00Z"))).toEqual({ inputPerMillion: 4, cachedInputPerMillion: 0.2, outputPerMillion: 20 });+ expect(listPriceFor("gemini-4-carbon", new Date("2026-12-01T00:00:00Z"))?.inputPerMillion).toBe(4);+ expect(listPriceFor("composer-2.5")).toEqual({ inputPerMillion: 0.5, cachedInputPerMillion: 0.2, outputPerMillion: 2.5 });+ expect(listPriceFor("composer-2.5-fast")?.outputPerMillion).toBe(15);+ for (const model of ["gpt-6.1-sol", "gpt-6.2-sol", "gpt-6-luna", "gpt-6-sol"]) expect(listPriceFor(model), model).not.toBeNull();+ expect(ledgerCost({ driverKind: "codex", model: "gpt-6.1-terra", input: 1_000_000, cachedInput: 500_000, output: 100_000, costUsd: null }, null))+ .toEqual({ costUsd: expect.closeTo(0.5 * 1 + 0.5 * 0.05 + 0.1 * 5, 9), costSource: "estimated" });+ });+it("leaves models without a published price unpriced rather than guessing from a sibling", () => {for (const model of ["gpt-5.3-codex-spark", "grok-4", "grok-4-fast", "grok-3-mini", "meta-llama/llama-3.3-70b-instruct", "kimi-code/k3", "claude-fake", ""]) {expect(listPriceFor(model), model).toBeNull();