Files
opencode-manager/docs/getting-started/quickstart.md
T
Chris Scott da6cad8b3a Add comprehensive documentation and download feature (#83)
* fix: markdown files now default to rendered view and render properly

- Add .md and .mdx MIME type support in backend (files.ts, defaults.ts)
- Add key props to FilePreview components to force proper remounting when switching files
- Fix markdown file detection with case-insensitive extension check
- Reset markdownPreview state when file changes to ensure correct default view
- Add onContentLoaded callback to VirtualizedTextView for reactive content updates
- Add fullContent state to properly handle large markdown file rendering
- Add error handling for async content loading to prevent blank screens
- Reduce loading timeout from 50ms to 0ms for more responsive loading

Fixes issues where:
- Markdown files opened in raw view instead of rendered view
- Large markdown files (12k+ lines) showed blank after loading completed
- State persisted incorrectly when switching between different file types

* Add directory download feature with ZIP archive support

* Improve voice recording UX with loading states and better transcript handling

* Fix auth config for prod/dev ports and add documentation

Update AUTH_TRUSTED_ORIGINS and PASSKEY_ORIGIN to use backend port 5003 (frontend uses 5173 in dev). Add comprehensive auth documentation covering secrets, trusted origins, admin reset, and passkeys. Update README and add mkdocs config.

* Remove roadmap section from README
2026-01-26 23:09:27 -05:00

2.6 KiB

Quick Start

Get up and running with OpenCode Manager in minutes.

1. Start the Application

=== "Docker"

```bash
git clone https://github.com/chriswritescode-dev/opencode-manager.git
cd opencode-manager
docker-compose up -d
```

Open [http://localhost:5003](http://localhost:5003)

=== "Local Development"

```bash
git clone https://github.com/chriswritescode-dev/opencode-manager.git
cd opencode-manager
pnpm install
cp .env.example .env
pnpm dev
```

Open [http://localhost:5173](http://localhost:5173)

2. Create Admin Account

On first launch, you'll be redirected to the setup page:

  1. Enter your name
  2. Enter your email
  3. Create a password
  4. Click Create Account

!!! tip "Pre-configured Admin" For automated deployments, you can skip this step by setting ADMIN_EMAIL and ADMIN_PASSWORD environment variables.

3. Configure AI Provider

Before chatting, you need to configure at least one AI provider:

  1. Go to Settings (gear icon)
  2. Select Provider Credentials
  3. Choose a provider (e.g., Anthropic, OpenAI)
  4. Enter your API key or click Add OAuth for supported providers
  5. Click Save

4. Clone a Repository

  1. Click the folder icon in the sidebar
  2. Click Clone Repository
  3. Paste a repository URL (HTTPS or SSH)
  4. Click Clone

!!! note "Private Repositories" For private repos, configure a GitHub Personal Access Token in Settings > Credentials first.

5. Start Chatting

  1. Select your cloned repository from the sidebar
  2. Click New Session or type /new
  3. Type your message
  4. Press Enter to send

Useful Commands

Command Description
/help Show available commands
/new Start a new session
/models List available models
/compact Reduce session context

File Mentions

Reference files in your prompts:

  1. Type @ in the chat input
  2. Start typing a filename
  3. Select from the autocomplete dropdown
  4. The AI will have access to that file's contents

6. Explore Features

Now that you're set up, explore more features:

Keyboard Shortcuts

Shortcut Action
Enter Send message
Shift+Enter New line
Ctrl+/ Toggle sidebar
Ctrl+K Command palette

Customize shortcuts in Settings > Keyboard Shortcuts.