Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
API key page [wip]
Vasek Mlejnsky0453e85458a4
diff --git a/apps/docs/src/app/getting-started/api-key/APIKey.tsx b/apps/docs/src/app/getting-started/api-key/APIKey.tsxnew file mode 100644index 000000000..457ed3670--- /dev/null+++ b/apps/docs/src/app/getting-started/api-key/APIKey.tsx@@ -0,0 +1,17 @@+import { Button } from '@/components/Button'+import { useApiKey, useUser } from '@/utils/useUser'++function APIKey() {+ const { user, isLoading, error } = useUser()+ const apiKey = useApiKey()++ return (+ <div className="flex flex-col min-[540px]:flex-row items-center gap-4">+ You can get your API key by signing up.+ {/* @ts-ignore */}+ <Button children="Sign up to get your API key" />+ </div>+ )+}++export default APIKey\ No newline at end of filediff --git a/apps/docs/src/app/getting-started/api-key/page.mdx b/apps/docs/src/app/getting-started/api-key/page.mdxindex 18f56fdbf..a23ea7d47 100644--- a/apps/docs/src/app/getting-started/api-key/page.mdx+++ b/apps/docs/src/app/getting-started/api-key/page.mdx@@ -1,9 +1,7 @@-# Get Your API Key+# Your API KeyYou can get your API key by signing up.+<Button children="Sign up to get your API key" />-Follow the getting started guide, once signed up.+Follow the [Basics](/getting-started/basics) to start using the SDK.-<div className="not-prose mb-16 mt-6 flex gap-3">- <Button children="Sign up to get your API key" />-</div>\ No newline at end of filediff --git a/apps/docs/src/components/Auth.tsx b/apps/docs/src/components/Auth.tsxindex 5f0908254..da4c1f75f 100644--- a/apps/docs/src/components/Auth.tsx+++ b/apps/docs/src/components/Auth.tsx@@ -31,14 +31,14 @@ export const Auth = function () {router.push('/')window.location.reload()}-+if (error) return <div className="flex flex-row items-center gap-4"><span className="text-red-500 text-sm" title={error?.message}>Something went wrong</span>{/* @ts-ignore */}<Button onClick={() => signInWithGitHub()}>Login</Button>- </div>+ </div>if (isLoading) return <div className="animate-pulse flex"><divdiff --git a/apps/docs/src/components/Navigation.tsx b/apps/docs/src/components/Navigation.tsxindex eba74daee..85b2d2fb3 100644--- a/apps/docs/src/components/Navigation.tsx+++ b/apps/docs/src/components/Navigation.tsx@@ -202,18 +202,18 @@ export const navigation = [title: 'Getting Started',links: [{ title: 'Installation', href: '/getting-started/installation' },- { title: 'Get Your API Key', href: '/getting-started/api-key' },+ { title: 'API Key', href: '/getting-started/api-key' },{ title: 'SDK Basics', href: '/getting-started/basics' },],},- {- title: 'AI Playgrounds',- links: [- { title: 'Overview', href: '/playgrounds/overview' },- { title: 'Limitations', href: '/playgrounds/limitations' },- // { title: 'Use with AI Agents & Copilots', href: '/getting-started/how-to' },- ],- },+ // {+ // title: 'AI Playgrounds',+ // links: [+ // { title: 'Overview', href: '/playgrounds/overview' },+ // { title: 'Limitations', href: '/playgrounds/limitations' },+ // // { title: 'Use with AI Agents & Copilots', href: '/getting-started/how-to' },+ // ],+ // },// {// title: 'AI Environments',// links: [