omi icon indicating copy to clipboard operation
omi copied to clipboard

CLI feature proposal: create memories from one validated JSON batch

Open Kgruben0133 opened this issue 2 months ago • 1 comments

Importing a small existing collection of facts through omi-cli currently requires separate memory create invocations. At 9ff63a63b047ec756b6a4e3d726bac5bf5d6440e, the memory commands expose no batch operation, while the Developer API already has POST /v1/dev/user/memories/batch, with a memories request field and a maximum of 25 entries.

I propose one CLI PR adding omi memory create-batch --file PATH. It would validate readable UTF-8 JSON and the batch shape/size before making one authenticated API request, then render the existing memories and created_count response. Preserve the server's memory-write authorization and category/visibility/tag semantics. Do not silently divide larger files into multiple writes. Tests would cover request mapping, malformed input with no request sent, and an API authorization failure, with a small synthetic input example in the README.

This is a source-verified feature proposal. It is separate from paginated memory export (#13070) and semantic search (#13125). No code, live write, component-test pass, or preflight pass is claimed yet.

@josancamon19 — following the contribution guide's bounty-suggestion process, would you sponsor this as a US$40 cash bounty, payable by the documented PayPal process after acceptance and merge? This amount is requested, not approved. AI-assisted proposal submitted on behalf of @Kgruben0133.

Kgruben0133 avatar Sep 08 '26 15:09 Kgruben0133

Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏

aryanorastar avatar Nov 05 '26 16:11 aryanorastar