You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cody/clients/enable-cody-enterprise.mdx
+3-31Lines changed: 3 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,11 @@ With [Sourcegraph Cloud](/cloud/), you get Cody as a managed service, and you **
31
31
32
32
### Prerequisites
33
33
34
-
- You have Sourcegraph version `5.1.0` or more
35
34
- A Sourcegraph Enterprise subscription with [Sourcegraph Model Provider (Cody Gateway)](/model-provider) or an account with a third-party LLM provider
36
35
37
36
### Enable Cody on your Sourcegraph instance
38
37
39
-
Site admins can only enable Cody on the Sourcegraph instance. To do so,
38
+
Site admins can enable Cody on the Sourcegraph instance. To do so,
40
39
41
40
- First, configure your desired LLM provider either by [using Sourcegraph Model Provider (Cody Gateway)](/model-provider) or by directly using a third-party LLM provider
42
41
- Next, go to **Site admin > Site configuration** (`/site-admin/configuration`) on your instance and set:
@@ -68,54 +67,27 @@ To turn Cody off:
68
67
69
68
## Enable Cody only for some users
70
69
71
-
How to enable Cody only for _some_ users depends on what version of Sourcegraph you are running.
72
-
73
-
### Sourcegraph v5.3+
74
-
75
-
In Sourcegraph v5.3+, access to Cody is managed via user roles. By default, all users have access.
70
+
Access to Cody is managed via user roles. By default, all users have access.
76
71
77
72
First, ensure Cody is enabled in your site configuration. Go to **Site admin > Site configuration** (`/site-admin/configuration`) on your instance and set:
78
73
79
74
```json
80
75
{
81
76
// [...]
82
77
"cody.enabled": true
83
-
// Make sure cody.restrictUsersFeatureFlag is not in your configuration! If it is, remove it.
84
78
}
85
79
```
86
80
87
81
<Callouttype="info">
88
82
Ensure `cody.restrictUsersFeatureFlag` is **not** in your site
89
-
configuration. If it is, remove it or else the old feature-flag approach
90
-
from Sourcegraph 5.2 and earlier will be used.
83
+
configuration. If it is, remove it.
91
84
</Callout>
92
85
93
86
Next, go to **Site admin > Users & Auth > Roles** (`/site-admin/roles`) on your instance. On that page, you can:
94
87
95
88
- Control whether users **by default** have access to Cody (expand `User [System]` and toggle **Cody** > **Access** as desired)
96
89
- Control whether groups of users have access to Cody (`+Create role` and enable the **Cody** > **Access** toggle as desired)
97
90
98
-
### Sourcegraph v5.2 and earlier
99
-
100
-
In Sourcegraph v5.2 and earlier, you should use the feature flag `cody` to turn Cody on selectively for some users. To do so:
101
-
102
-
- Go to **Site admin > Site configuration** (`/site-admin/configuration`) on your instance and set:
103
-
104
-
```json
105
-
{
106
-
// [...]
107
-
"cody.enabled": true,
108
-
"cody.restrictUsersFeatureFlag": true
109
-
}
110
-
```
111
-
112
-
- Next, go to **Site admin > Feature flags** (`/site-admin/feature-flags`)
113
-
- Add a feature flag called `cody`
114
-
- Select the `boolean` type and set it to `false`
115
-
- Once added, click on the feature flag and use **add overrides** to pick users that will have access to Cody
Cody supports several LLM providers and models. You can access these models via the Cody Gateway, directly using your own model provider account or infrastructure.
0 commit comments