Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
Merge PR 955
diegosouzapw7885153933d6
diff --cc src/app/(dashboard)/dashboard/settings/components/MemorySkillsTab.tsxindex fd1d4a4824,a63a3600a8..6dbb78ca56--- a/src/app/(dashboard)/dashboard/settings/components/MemorySkillsTab.tsx+++ b/src/app/(dashboard)/dashboard/settings/components/MemorySkillsTab.tsx@@@ -32,17 -35,43 +35,44 @@@ export default function MemorySkillsTabconst t = useTranslations("settings");useEffect(() => {- fetch("/api/settings/memory")- .then((res) => (res.ok ? res.json() : null))- .then((data) => {- if (data) setConfig(data);+ Promise.all([- fetch("/api/settings/memory").then((res) => res.json()),- fetch("/api/settings").then((res) => res.json()),++ fetch("/api/settings/memory").then((res) => (res.ok ? res.json() : null)),++ fetch("/api/settings").then((res) => (res.ok ? res.json() : null)),+ ])+ .then(([memData, settingsData]) => {- setConfig(memData);- if (settingsData.skillsmpApiKey) {++ if (memData) setConfig(memData);++ if (settingsData?.skillsmpApiKey) {+ setSkillsmpApiKey(settingsData.skillsmpApiKey);+ }- setLoading(false);})- .catch(() => setLoading(false));+ .catch(() => {})+ .finally(() => setLoading(false));}, []);+ const saveSkillsmpApiKey = useCallback(async () => {+ setSkillsmpSaving(true);+ setSkillsmpStatus("");+ try {+ const res = await fetch("/api/settings", {+ method: "PATCH",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ skillsmpApiKey }),+ });+ if (res.ok) {+ setSkillsmpStatus("saved");+ setTimeout(() => setSkillsmpStatus(""), 2000);+ } else {+ setSkillsmpStatus("error");+ }+ } catch {+ setSkillsmpStatus("error");+ } finally {+ setSkillsmpSaving(false);+ }+ }, [skillsmpApiKey]);+const save = async (updates: Partial<MemoryConfig>) => {+ const previousConfig = config;const newConfig = { ...config, ...updates };setConfig(newConfig);setSaving(true);@@@ -248,7 -273,59 +278,57 @@@/></button></div>-- <p className="text-xs text-text-muted mt-3">{t("skillsComingSoon")}</p></Card>++ {/* SkillsMP Marketplace API Key */}+ <Card>+ <div className="flex items-center gap-3 mb-5">+ <div className="p-2 rounded-lg bg-blue-500/10 text-blue-500">+ <span className="material-symbols-outlined text-[20px]" aria-hidden="true">+ storefront+ </span>+ </div>+ <div>+ <h3 className="text-lg font-semibold">SkillsMP Marketplace</h3>+ <p className="text-sm text-text-muted">+ Connect to SkillsMP to discover and install skills from the marketplace.+ </p>+ </div>+ {skillsmpStatus === "saved" && (+ <span className="ml-auto text-xs font-medium text-emerald-500 flex items-center gap-1">+ <span className="material-symbols-outlined text-[14px]">check_circle</span>{" "}+ {t("saved")}+ </span>+ )}+ {skillsmpStatus === "error" && (+ <span className="ml-auto text-xs font-medium text-red-500">Failed to save</span>+ )}+ </div>++ <div className="p-4 rounded-lg bg-surface/30 border border-border/30">+ <label className="text-sm font-medium block mb-2">API Key</label>+ <div className="flex gap-2">+ <input+ type="password"+ value={skillsmpApiKey}+ onChange={(e) => setSkillsmpApiKey(e.target.value)}+ placeholder="sk_live_..."+ className="flex-1 px-3 py-2 rounded-lg bg-background border border-border text-sm font-mono focus:outline-none focus:ring-1 focus:ring-violet-500"+ />+ <button+ onClick={saveSkillsmpApiKey}+ disabled={skillsmpSaving}+ className="px-4 py-2 text-sm font-medium rounded-lg bg-violet-500 text-white hover:bg-violet-600 disabled:opacity-50 transition-colors"+ >+ {skillsmpSaving ? "Saving..." : "Save"}+ </button>+ </div>+ <p className="text-xs text-text-muted mt-2">+ Get your API key from <span className="text-violet-400">skillsmp.com</span>. Rate limit:+ 500 requests/day.+ </p>+ </div>+ </Card></div>);}diff --cc src/lib/localDb.tsindex 9b38f4cb8a,4a3aa106bd..3f10285bedmode 100755,100644..100755--- a/src/lib/localDb.ts+++ b/src/lib/localDb.ts