Bläddra i källkod

docs: lander copy

Jay V 2 månader sedan
förälder
incheckning
14291bff71

+ 9 - 11
packages/console/app/src/routes/index.tsx

@@ -652,13 +652,13 @@ export default function Home() {
               </li>
               <li>
                 <Faq question="Do I need extra AI subscriptions to use OpenCode?">
-                  Not necessarily, but probably. You’ll need an AI subscription if you want to connect OpenCode to a
-                  paid provider, although you can work with{" "}
-                  <a href="/docs/providers/#lm-studio" target="_blank">
-                    local models
-                  </a>{" "}
-                  for free. While we encourage users to use <A href="/zen">Zen</A>, OpenCode works with all popular
-                  providers such as OpenAI, Anthropic, xAI etc.
+                  Not necessarily, OpenCode comes with a set of free models that you
+                  can use without creating an account. Aside from these, you can use any of the popular coding models by creating a <A href="/zen">Zen</A> account. While we encourage users to use Zen, OpenCode also works with all popular providers such as OpenAI, Anthropic, xAI etc. You can even connect your <a href="/docs/providers/#lm-studio" target="_blank">local models</a>.
+                </Faq>
+              </li>
+              <li>
+                <Faq question="Can I use my existing AI subscriptions with OpenCode?">
+                  Yes, OpenCode supports subscription plans from all major providers. You can use your Claude Pro/Max, ChatGPT Plus/Pro, or GitHub Copilot subscriptions. <a href="/docs/providers/#directory">Learn more</a>.
                 </Faq>
               </li>
               <li>
@@ -668,14 +668,12 @@ export default function Home() {
               </li>
               <li>
                 <Faq question="How much does OpenCode cost?">
-                  OpenCode is 100% free to use. Any additional costs will come from your subscription to a model
-                  provider. While OpenCode works with any model provider, we recommend using <A href="/zen">Zen</A>.
+                  OpenCode is 100% free to use. It also comes with a set of free models. There might be additional costs if you connect any other provider.
                 </Faq>
               </li>
               <li>
                 <Faq question="What about data and privacy?">
-                  Your data and information is only stored when you create sharable links in OpenCode. Learn more about{" "}
-                  <a href="/docs/share/#privacy">share pages</a>.
+                  Your data and information is only stored when you use our free models or create sharable links. Learn more about <a href="/docs/zen/#privacy">our models</a> and <a href="/docs/share/#privacy">share pages</a>.
                 </Faq>
               </li>
               <li>

+ 18 - 18
packages/web/src/content/docs/github.mdx

@@ -1,17 +1,17 @@
 ---
 title: GitHub
-description: Use opencode in GitHub issues and pull-requests.
+description: Use OpenCode in GitHub issues and pull-requests.
 ---
 
-opencode integrates with your GitHub workflow. Mention `/opencode` or `/oc` in your comment, and opencode will execute tasks within your GitHub Actions runner.
+OpenCode integrates with your GitHub workflow. Mention `/opencode` or `/oc` in your comment, and OpenCode will execute tasks within your GitHub Actions runner.
 
 ---
 
 ## Features
 
-- **Triage issues**: Ask opencode to look into an issue and explain it to you.
-- **Fix and implement**: Ask opencode to fix an issue or implement a feature. And it will work in a new branch and submits a PR with all the changes.
-- **Secure**: opencode runs inside your GitHub's runners.
+- **Triage issues**: Ask OpenCode to look into an issue and explain it to you.
+- **Fix and implement**: Ask OpenCode to fix an issue or implement a feature. And it will work in a new branch and submits a PR with all the changes.
+- **Secure**: OpenCode runs inside your GitHub's runners.
 
 ---
 
@@ -62,7 +62,7 @@ Or you can set it up manually.
            with:
              fetch-depth: 1
 
-         - name: Run opencode
+         - name: Run OpenCode
            uses: sst/opencode/github@latest
            env:
              ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -80,12 +80,12 @@ Or you can set it up manually.
 
 ## Configuration
 
-- `model`: The model to use with opencode. Takes the format of `provider/model`. This is **required**.
-- `share`: Whether to share the opencode session. Defaults to **true** for public repositories.
-- `prompt`: Optional custom prompt to override the default behavior. Use this to customize how opencode processes requests.
-- `token`: Optional GitHub access token for performing operations such as creating comments, committing changes, and opening pull requests. By default, opencode uses the installation access token from the opencode GitHub App, so commits, comments, and pull requests appear as coming from the app.
+- `model`: The model to use with OpenCode. Takes the format of `provider/model`. This is **required**.
+- `share`: Whether to share the OpenCode session. Defaults to **true** for public repositories.
+- `prompt`: Optional custom prompt to override the default behavior. Use this to customize how OpenCode processes requests.
+- `token`: Optional GitHub access token for performing operations such as creating comments, committing changes, and opening pull requests. By default, OpenCode uses the installation access token from the OpenCode GitHub App, so commits, comments, and pull requests appear as coming from the app.
 
-  Alternatively, you can use the GitHub Action runner's [built-in `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) without installing the opencode GitHub App. Just make sure to grant the required permissions in your workflow:
+  Alternatively, you can use the GitHub Action runner's [built-in `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) without installing the OpenCode GitHub App. Just make sure to grant the required permissions in your workflow:
 
   ```yaml
   permissions:
@@ -101,7 +101,7 @@ Or you can set it up manually.
 
 ## Custom prompts
 
-Override the default prompt to customize opencode's behavior for your workflow.
+Override the default prompt to customize OpenCode's behavior for your workflow.
 
 ```yaml title=".github/workflows/opencode.yml"
 - uses: sst/opencode/github@latest
@@ -120,7 +120,7 @@ This is useful for enforcing specific review criteria, coding standards, or focu
 
 ## Examples
 
-Here are some examples of how you can use opencode in GitHub.
+Here are some examples of how you can use OpenCode in GitHub.
 
 - **Explain an issue**
 
@@ -130,7 +130,7 @@ Here are some examples of how you can use opencode in GitHub.
   /opencode explain this issue
   ```
 
-  opencode will read the entire thread, including all comments, and reply with a clear explanation.
+  OpenCode will read the entire thread, including all comments, and reply with a clear explanation.
 
 - **Fix an issue**
 
@@ -140,7 +140,7 @@ Here are some examples of how you can use opencode in GitHub.
   /opencode fix this
   ```
 
-  And opencode will create a new branch, implement the changes, and open a PR with the changes.
+  And OpenCode will create a new branch, implement the changes, and open a PR with the changes.
 
 - **Review PRs and make changes**
 
@@ -150,18 +150,18 @@ Here are some examples of how you can use opencode in GitHub.
   Delete the attachment from S3 when the note is removed /oc
   ```
 
-  opencode will implement the requested change and commit it to the same PR.
+  OpenCode will implement the requested change and commit it to the same PR.
 
 - **Review specific code lines**
 
-  Leave a comment directly on code lines in the PR's "Files" tab. opencode automatically detects the file, line numbers, and diff context to provide precise responses.
+  Leave a comment directly on code lines in the PR's "Files" tab. OpenCode automatically detects the file, line numbers, and diff context to provide precise responses.
 
   ```
   [Comment on specific lines in Files tab]
   /oc add error handling here
   ```
 
-  When commenting on specific lines, opencode receives:
+  When commenting on specific lines, OpenCode receives:
   - The exact file being reviewed
   - The specific lines of code
   - The surrounding diff context

+ 14 - 14
packages/web/src/content/docs/gitlab.mdx

@@ -1,25 +1,25 @@
 ---
 title: GitLab
-description: Use opencode in GitLab issues and merge requests.
+description: Use OpenCode in GitLab issues and merge requests.
 ---
 
-opencode integrates with your GitLab workflow.
-Mention `@opencode` in a comment, and opencode will execute tasks within your GitLab CI pipeline.
+OpenCode integrates with your GitLab workflow.
+Mention `@opencode` in a comment, and OpenCode will execute tasks within your GitLab CI pipeline.
 
 ---
 
 ## Features
 
-- **Triage issues**: Ask opencode to look into an issue and explain it to you.
-- **Fix and implement**: Ask opencode to fix an issue or implement a feature.
+- **Triage issues**: Ask OpenCode to look into an issue and explain it to you.
+- **Fix and implement**: Ask OpenCode to fix an issue or implement a feature.
   It will work create a new branch and raised a merge request with the changes.
-- **Secure**: opencode runs on your GitLab runners.
+- **Secure**: OpenCode runs on your GitLab runners.
 
 ---
 
 ## Setup
 
-opencode runs in your GitLab CI/CD pipeline, here's what you'll need to set it up:
+OpenCode runs in your GitLab CI/CD pipeline, here's what you'll need to set it up:
 
 :::tip
 Check out the [**GitLab docs**](https://docs.gitlab.com/user/duo_agent_platform/agent_assistant/) for up to date instructions.
@@ -48,7 +48,7 @@ Check out the [**GitLab docs**](https://docs.gitlab.com/user/duo_agent_platform/
       - apt-get install --yes glab
       - echo "Configuring glab"
       - echo $GITLAB_HOST
-      - echo "Creating opencode auth configuration"
+      - echo "Creating OpenCode auth configuration"
       - mkdir --parents ~/.local/share/opencode
       - |
         cat > ~/.local/share/opencode/auth.json << EOF
@@ -61,10 +61,10 @@ Check out the [**GitLab docs**](https://docs.gitlab.com/user/duo_agent_platform/
         EOF
       - echo "Configuring git"
       - git config --global user.email "[email protected]"
-      - git config --global user.name "Opencode"
+      - git config --global user.name "OpenCode"
       - echo "Testing glab"
       - glab issue list
-      - echo "Running Opencode"
+      - echo "Running OpenCode"
       - |
         opencode run "
         You are an AI assistant helping with GitLab operations.
@@ -115,7 +115,7 @@ You can refer to the [GitLab CLI agents docs](https://docs.gitlab.com/user/duo_a
 
 ## Examples
 
-Here are some examples of how you can use opencode in GitLab.
+Here are some examples of how you can use OpenCode in GitLab.
 
 :::tip
 You can configure to use a different trigger phrase than `@opencode`.
@@ -129,7 +129,7 @@ You can configure to use a different trigger phrase than `@opencode`.
   @opencode explain this issue
   ```
 
-  opencode will read the issue and reply with a clear explanation.
+  OpenCode will read the issue and reply with a clear explanation.
 
 - **Fix an issue**
 
@@ -139,7 +139,7 @@ You can configure to use a different trigger phrase than `@opencode`.
   @opencode fix this
   ```
 
-  opencode will create a new branch, implement the changes, and open a merge request with the changes.
+  OpenCode will create a new branch, implement the changes, and open a merge request with the changes.
 
 - **Review merge requests**
 
@@ -149,4 +149,4 @@ You can configure to use a different trigger phrase than `@opencode`.
   @opencode review this merge request
   ```
 
-  opencode will review the merge request and provide feedback.
+  OpenCode will review the merge request and provide feedback.