Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
List GPT-6.2 Sol and Astra in the Codex API key model picker.
Ooi Pin Jun98d12ffe98de
diff --git a/server/agent-endpoint-models.test.ts b/server/agent-endpoint-models.test.tsindex 689c06df20..38c36d1dfe 100644--- a/server/agent-endpoint-models.test.ts+++ b/server/agent-endpoint-models.test.ts@@ -90,6 +90,11 @@ it.each([true, false])("never sends the key to a plain-HTTP host off this computexpect(failure.message).toContain("type the model");expect(failure.status).toBe(400);});+it("keeps GPT-5.6 Sol as the official Codex default and lists GPT-6.2 Astra and Sol", () => {+ const models = officialModels(true);+ expect(models[0]).toBe("gpt-5.6-sol");+ expect(models).toEqual(expect.arrayContaining(["gpt-6.2-astra", "gpt-6.2-sol"]));+});it.each(["http://127.0.0.1:8317/v1", "http://[::1]:8317/v1"])("still reads a loopback catalog over plain HTTP (%s)", async url => {const entry = endpoint(false, url);const request = vi.fn<typeof fetch>().mockResolvedValue(Response.json({ data: [{ id: "model-a" }] }));diff --git a/server/claude-account-api.test.ts b/server/claude-account-api.test.tsindex ed39ff0e2d..677617cd9e 100644--- a/server/claude-account-api.test.ts+++ b/server/claude-account-api.test.ts@@ -171,6 +171,7 @@ describe("Claude account HTTP API", () => {const instance = result.body.instances.find((row: any) => row.instanceId === result.body.instanceId);expect(instance.models.options.length).toBeGreaterThan(1);expect(instance.models.options.every((option: any) => option.custom)).toBe(true);+ if (engine === "codex") expect(instance.models.options.map((option: any) => option.id)).toEqual(expect.arrayContaining(["gpt-6.2-astra", "gpt-6.2-sol"]));expect(saved().instances[result.body.instanceId].environment).not.toHaveProperty("ANTHROPIC_MODEL");});diff --git a/server/drivers/codex-catalog.test.ts b/server/drivers/codex-catalog.test.tsindex 6e7bac9cd5..ac74e47a5e 100644--- a/server/drivers/codex-catalog.test.ts+++ b/server/drivers/codex-catalog.test.ts@@ -71,6 +71,15 @@ describe("readCodexModelCatalog", () => {);});+ it("lists GPT-6.2 Astra and Sol first when the static cloud fallback is used", async () => {+ const catalog = await readCodexModelCatalog({ HOME: join(tmpdir(), "omb-codex-missing-home") });+ expect(catalog.options.slice(0, 2)).toEqual([+ { id: "gpt-6.2-astra", label: "GPT-6.2 Astra (availability unverified)" },+ { id: "gpt-6.2-sol", label: "GPT-6.2 Sol (availability unverified)" },+ ]);+ expect(catalog.default).toBe("gpt-5.6-sol");+ });+it("uses every visible page from the installed Codex app-server catalog", async () => {chmodSync(FAKE_CLI, 0o755);const catalog = await readCodexModelCatalog(diff --git a/server/drivers/codex-catalog.ts b/server/drivers/codex-catalog.tsindex e2bd4e6d5b..1013baed04 100644--- a/server/drivers/codex-catalog.ts+++ b/server/drivers/codex-catalog.ts@@ -16,6 +16,8 @@ export const STATIC_CODEX_MODELS: ModelCatalog = {default: "gpt-5.6-sol",options: [// Only used when live discovery fails; these rows do not establish account access.+ { id: "gpt-6.2-astra", label: "GPT-6.2 Astra (availability unverified)" },+ { id: "gpt-6.2-sol", label: "GPT-6.2 Sol (availability unverified)" },{ id: "gpt-6-astra", label: "GPT-6 Astra (availability unverified)" },{ id: "gpt-6-sol", label: "GPT-6 Sol (availability unverified)" },{ id: "gpt-6-luna", label: "GPT-6 Luna (availability unverified)" },