Elffuss BraidHub

kikocis/continue public

87f75892af56 · 1.6 KiBRenderedRawPermalink
1# Onboarding
2
3When a user first runs `cn` in interactive mode, they will be taken through "onboarding". After they have completed onboarding once, they will follow a normal config loading flow.
4
5## Onboarding flow
6
7**The onboarding flow runs when the user hasn't completed onboarding before, regardless of whether they have a valid config.yaml file.**
8
91. If the --config flag is provided, load this config
102. Otherwise, we will present the user with two options:
11
12 - Log in with Continue: log them in, which will automatically create their assistant and then we can load the first assistant from the first org
13 - Enter your Anthropic API key: let them enter the key, and then either create a ~/.continue/config.yaml with the following contents OR update the existing config.yaml to add the model
14
15 ```yaml
16 name: Local Config
17 version: 1.0.0
18 schema: v1
19
20 models:
21 - uses: anthropic/claude-4-sonnet
22 with:
23 ANTHROPIC_API_KEY: <THEIR_ANTHROPIC_API_KEY>
24 ```
25
26When something in the onboarding flow is done automatically, we should tell the user what happened.
27
28## Normal flow
29
30**The normal flow runs when the user has already completed onboarding.**
31
321. If the --config flag is provided, load this config
332. If the user is logged in, look for the first assistant in the selected org
343. If there are no assistants in that org, then look for a local ~/.continue/config.yaml
354. If there is no config.yaml, look for an ANTHROPIC_API_KEY in the environment and manually construct the config object to include just the claude-4-sonnet model with that API key
365. If none of the above, then bring the user to step 3 of the onboarding flow