anytype
Original:🇺🇸 English
Translated
1 scripts
AnyType knowledge base integration via direct REST API. USE WHEN anytype, knowledge base search, create note, create object, anytype spaces, search notes, read object, list tasks, manage tasks OR any request to interact with AnyType data.
10installs
Sourcemrecek/ai-skills
Added on
NPX Install
npx skill4agent add mrecek/ai-skills anytypeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →AnyType Skill
Direct integration with AnyType's local REST API. No MCP dependency — uses HTTP calls via a TypeScript CLI tool.
Prerequisites
- AnyType desktop app running (provides REST API on localhost)
- runtime installed
bun - API key configured (run Auth workflow if not set up)
Configuration
Per-machine config is resolved in order:
- Environment variables: ,
ANYTYPE_API_KEY,ANYTYPE_HOSTANYTYPE_PORT - Config file:
~/.config/anytype-skill/config.json - Defaults: host=localhost, port=31009
Auto-space: Commands that require a space ID will auto-detect it when you have a single space. Use to override or when you have multiple spaces.
--space <id>Tool Location
All operations go through a single CLI tool at relative to this skill's root directory. Construct the full path based on where this SKILL.md was loaded from.
Tools/AnyType.tsbun <skill-root>/Tools/AnyType.ts <command> [options]Workflow Routing
| Workflow | Trigger | File |
|---|---|---|
| Auth | Set up API key, authenticate, auth status | |
| Search | Search objects, find notes, query AnyType | |
| Read | Get object, read note, view object details | |
| Tasks | List tasks, create task, mark done, manage tasks | |
Tool Reference
Authentication
| Command | Description |
|---|---|
| Start auth flow (4-digit code appears in AnyType) |
| Exchange code for API key |
| Manually set an API key |
| Check current config and connectivity |
Querying
| Command | Description |
|---|---|
| List all spaces |
| Search objects |
| Get a specific object |
| List objects in a space |
| List tasks (default: open/uncompleted) |
Task Shortcuts
| Command | Description |
|---|---|
| Quick-create a task |
| Mark a task as complete |
Mutating
| Command | Description |
|---|---|
| Create an object |
| Update an object |
| Archive an object |
All commands output JSON to stdout. is optional for all mutating/querying commands (auto-detected).
--spaceSearch Behavior
- Search is required and searches object content, not just names
query - To list all objects of a type, use a space as wildcard:
search --query " " --types <type_key> - The flag filters which object types are returned, not what text is searched
--types - Type keys (e.g., ,
page,task) vary per space — discover them by running a broad search and inspecting thenotefield in resultstype.key - Objects may contain links in their markdown body that reference other objects by
anytype://andobjectId— use these with thespaceIdcommand to follow linksget - Use to get most recently modified first
--sort last_modified_date --direction desc - Use to scope search to a single space
--space <id>
Property Format Reference
When using with or , match the property format:
--propertiescreateupdate| Format | JSON Example |
|---|---|
| checkbox | |
| text | |
| select | |
| date | |
Note: also accepts as a shorthand for setting the due_date property.
update--due YYYY-MM-DDAPI Quirks
- Unchecked checkboxes are omitted: When is
done, the property is absent from the response (not returned asfalse). Thefalsecommand handles this automatically.tasks - No server-side property filtering: The API filters by type but not property values. The command filters client-side.
tasks - Delete = archive: The DELETE endpoint archives objects; they can be restored in AnyType.
Examples
List open tasks:
bun Tools/AnyType.ts tasksQuick-create a task with due date:
bun Tools/AnyType.ts task-add "Review pull request" --due 2026-03-01Mark task done:
bun Tools/AnyType.ts done <task_id>Set a due date on existing task:
bun Tools/AnyType.ts update --id <task_id> --due 2026-03-15Search with sorting:
bun Tools/AnyType.ts search --query "meeting" --sort last_modified_date --direction descRead a specific object:
bun Tools/AnyType.ts get --id <object_id>Create with full control:
bun Tools/AnyType.ts create --type page --name "Meeting Notes" --body "## Agenda\n- Item 1"