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
feat(cli): improve auth validation, paginated responses, and UX (#425)
- Add ValidateAndRefresh to verify tokens with Supabase instead of only checking local expiry
- Add `dash ping` command to verify API connectivity for current project
- Fix paginated response handling with generic PaginatedResponse[T] type
- Fix CreateProjectResponse/RotateKeyResponse to match actual API output
- Clear credentials.json on logout alongside auth.json
- Remove ACONTEXT_API_KEY/ACONTEXT_API_TOKEN env var fallbacks (use credentials.json)
- Rename artifacts `ls` subcommand to `list` for consistency
- Fix TUI input to handle paste (multi-rune) correctly
- Add comprehensive test coverage for API client methods
- Update SKILL.md docs with ping command and improved instructions
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: landingpage/public/SKILL.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,15 @@ Acontext provides Agent Skills as a Memory Layer for production AI agents. It pr
23
23
24
24
### 1. Install Acontext CLI
25
25
26
+
If Acontext CLI is already installed, check for updates first:
27
+
```bash
28
+
acontext upgrade
29
+
```
30
+
31
+
If not installed, install it:
26
32
```bash
27
33
curl -fsSL https://install.acontext.io | sh
28
34
```
29
-
After installation, restart your shell or run `source ~/.bashrc` (or `~/.zshrc`) to make sure the CLI is in your PATH.
30
35
31
36
> For system-wide installation:
32
37
> ```bash
@@ -41,6 +46,7 @@ acontext login
41
46
- If you're in a Interactive Terminal(TTY), this command will open a browser for OAuth, then guides you through project creation. Your API key is saved automatically.
42
47
- If you're in a Non-interactive Terminal(agent/CI), this command will print a login URL for the user to open manually. After user completes, run `acontext login --poll` to finish authentication.
43
48
- Set up a project via `acontext dash projects` commands. If Acontext has existing projects, make sure the user wants to use an existing project or create a new project for you.
49
+
44
50
### 3. Add Acontext to Your Agent
45
51
46
52
Both plugins automatically read your API key and user email from `~/.acontext/credentials.json` and `~/.acontext/auth.json` (written by `acontext login`). No manual configuration is needed after login.
@@ -88,18 +94,22 @@ openclaw gateway
88
94
After you have logged in, you can manage Acontext projects via CLI:
89
95
90
96
1.`acontext dash projects list --json` — list available projects
91
-
2. If user ask you to use a existing Acontext project, you should let the user to provider the api key. And then switch to this project `acontext dash projects select --project <project-id> --api-key <sk-ac-...>`.
92
-
3. To create, ask for an org name and project name, then run: `acontext dash projects create --name <project-name> --org <org-id>`, this command would return the API Key to you, and then select to the new project.
97
+
2. If user ask you to use a existing Acontext project, you should let the user to provide the api key. And then switch to this project `acontext dash projects select --project <project-id> --api-key <sk-ac-...>`.
98
+
3. To create, ask for an org name and project name, then run: `acontext dash projects create --name <project-name> --org <org-id>`. This command returns the API key and auto-saves it as the default project (no need to run `select` afterwards).
99
+
4. After select or create, verify the project is configured correctly:
100
+
- Check that `~/.acontext/credentials.json` contains the project key.
101
+
- Run `acontext dash ping` to verify API connectivity. A successful response confirms the project is reachable.
0 commit comments