Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,6 @@ This project is currently private and proprietary.
<div align="center">
<strong>Built with ❤️ by the Supercode team!</strong>
</div>


<!-- comment for testing 1 -->
2 changes: 1 addition & 1 deletion apps/docs/app/docs/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redirect } from "next/navigation"

export default function DocsIndex() {
redirect("/docs/intro")
redirect("/docs/dashboard-intro")
}
2 changes: 1 addition & 1 deletion apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "./globals.css"

export const metadata: Metadata = {
title: "Docs | Supercode",
description: "Documentation for Supercode — AI coding agent for the terminal.",
description: "Documentation for Supercode — AI SWE agent for the terminal.",
}

export default function RootLayout({
Expand Down
58 changes: 58 additions & 0 deletions apps/docs/content/docs/authentication.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
title: Authentication
description: Setting up GitHub OAuth authentication.
---

# Authentication

Supercode uses GitHub OAuth for secure authentication. This allows you to sign in with your GitHub account and access your repositories.

## Sign In

1. Visit [supercli.com](https://supercli.com)
2. Click **Sign In**
3. You'll be redirected to GitHub for authorization
4. Authorize the Supercode application
5. You'll be redirected back to the dashboard

## GitHub OAuth Setup

### For Users

The OAuth flow is handled automatically. When you sign in:

1. GitHub will ask you to authorize Supercode
2. Grant access to your GitHub account
3. You'll be able to view and connect your repositories

### Required Permissions

Supercode requests the following GitHub permissions:
- **Read user profile** - To display your account info
- **Read repositories** - To list and display your repos
- **Read repository contents** - To analyze code when using Terminal

## Session Management

- Sessions are managed via secure HTTP-only cookies
- Session tokens are encrypted with `BETTER_AUTH_SECRET`
- Sessions persist across browser sessions

## Security

- Passwords are never stored (GitHub handles authentication)
- API keys for AI providers are stored per-user in encrypted form
- All requests are served over HTTPS in production

## Troubleshooting

### Authorization Failed

If GitHub authorization fails:
1. Check that you're logged into the correct GitHub account
2. Ensure the Supercode app hasn't been revoked in GitHub settings
3. Try clearing browser cookies and signing in again

### Session Expired

Sessions expire after 30 days of inactivity. Simply sign in again to continue.
91 changes: 0 additions & 91 deletions apps/docs/content/docs/commands.mdx

This file was deleted.

122 changes: 0 additions & 122 deletions apps/docs/content/docs/config.mdx

This file was deleted.

40 changes: 40 additions & 0 deletions apps/docs/content/docs/dashboard-intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: Dashboard
description: Overview of the Supercode Dashboard.
---

# Dashboard

The Supercode Dashboard is a web-based interface for managing your account, connecting GitHub repositories, and accessing the Terminal AI coding agent.

## Features

- **Authentication** - Secure sign-in with GitHub OAuth
- **Repository Management** - Connect and manage your GitHub repositories
- **Terminal Access** - Launch the AI coding terminal for your projects
- **Settings** - Manage your profile and connected repositories

## Getting Started

1. Sign in at [supercli.vercel.app](https://supercli.vercel.app) using GitHub
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Use one canonical sign-in URL across docs.

Line 19 points to supercli.vercel.app, while the auth page points to supercli.com. Pick one canonical URL (or use a relative route) to avoid sending users to different environments.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/docs/content/docs/dashboard-intro.mdx` at line 19, The doc contains an
inconsistent sign-in link ("Sign in at
[supercli.vercel.app](https://supercli.vercel.app)") that conflicts with the
auth page which uses supercli.com; update this link in dashboard-intro.mdx to
use the canonical URL (e.g., https://supercli.com) or replace it with a relative
route like /signin to ensure all docs point to the same sign-in endpoint and
avoid cross-environment redirects.

2. Navigate to the **Providers** page to connect your repositories
3. Access the **Terminal** to start AI-assisted coding

## Navigation

| Page | Description |
|------|-------------|
| Dashboard | Main overview and quick actions |
| Providers | Connect and manage GitHub repositories |
| Terminal | Launch the AI coding agent |
| Settings | Profile and account management |

## Tech Stack

The dashboard is built with:
- Next.js 16 (App Router)
- React 19
- TypeScript
- Tailwind CSS v4
- Better-Auth for authentication
- Prisma with PostgreSQL
Loading