Build content-powered websites, apps, and AI agents with a flexible content API, AI generation built in, and a CLI that goes from idea to production in minutes.
- Content API: A flexible REST and content API and toolkit backed by a fast, globally distributed CDN.
- AI content generation: Generate text, images, and video directly from the dashboard or via the SDK.
- AI-powered CLI: Manage content, media, deployments, and AI agents through natural language or direct commands.
- MCP server: Connect Cosmic content to Claude, Cursor, and any MCP-compatible client.
- JavaScript SDK: First-class TypeScript support for Node, browsers, and native apps.
- Framework agnostic: Works with Next.js, Astro, Remix, SvelteKit, React Native, or any framework.
npm install -g @cosmicjs/cli
cosmic loginOr sign up in seconds with your AI assistant.
Or install the SDK in an existing project:
npm install @cosmicjs/sdkimport { createBucketClient } from "@cosmicjs/sdk";
const cosmic = createBucketClient({
bucketSlug: "your-bucket-slug",
readKey: "your-read-key",
});
const { objects: posts } = await cosmic.objects
.find({ type: "posts" })
.props(["slug", "title", "metadata"])
.limit(10);- cosmic-sdk-js: Official JavaScript/TypeScript SDK.
- cli: AI-powered CLI for managing content, media, deployments, and agents.
- mcp: Model Context Protocol server for Cosmic.
- skills: Agent skills for working with Cosmic content.
- cosmic-sdk-swift: Swift SDK for iOS and macOS.
- simple-nextjs-blog: A blog powered by Next.js.
- simple-astro-blog: A blog powered by Astro.
- nextjs-developer-portfolio: Developer portfolio template.
- agency-template: Agency site built with Blocks.
Browse all community projects on cosmicjs.com.
- Docs: cosmicjs.com/docs
- Discord: Join Server
- X / Twitter: @cosmicjs
- Support: support@cosmicjs.com
- Status: status.cosmicjs.com
We welcome contributions across all our repos. Each project has its own CONTRIBUTING.md. For bugs or feature requests, open an issue in the relevant repository.