Start Building in Seconds
Copy-paste recipes for every COG module. Pick a module, follow the quickstart, then explore the full recipe book. Every command runs immediately — zero config, zero dependencies.
Core Engine
Pack, verify, query — the foundation of everything
cog.py + cog.shcurl -fsSL https://cognis.work/install.sh | sudo bash
This is the container system at the heart of COG. It lets you package files, track what changed, and prove that nothing was tampered with — like a tamper-evident box with a built-in history log.
The core engine is an append-only content-addressed bundle format with SHA-256 block identities, verification, query support, replayable event logs, and compaction for index and storage optimization.
Quick Start
1. Pack a project
Bundle an entire directory into a single .cog file
cog pack ./my-project output.cog
2. Inspect it
List all blocks with their hashes, types, and sizes
cog list output.cog -v
3. Verify integrity
Check every block hash and proof chain
cog verify output.cog
Recipe Book(9 recipes)
Tips
- •Every operation is append-only — you can never lose data
- •Blocks are content-addressed by SHA-256, so identical content is automatically deduped
- •Use cog compact to reclaim space from old blocks
- •The event log tracks WHO did WHAT and WHEN for every operation
All Modules
Resources
End-to-End Workflows
Real-world recipes that combine multiple COG modules together. Each workflow is a complete, copy-paste sequence from start to finish.
Cheat Sheet
cog pack DIR OUTcog list BUNDLE [-v]cog get BUNDLE HASHcog put BUNDLE FILE TYPEcog query BUNDLE "text"cog fork BUNDLE OUTcog verify BUNDLEcog sign BUNDLE --key Kcog embed BUNDLE FILEScog replay BUNDLEcog compact BUNDLE [OUT]cog log BUNDLE [-n N]cog_ai.pycog_ai.py "query"cog_ai.py -v "query"cog_ai.py --offlinecog_ai.py --serve-openai-local --port 11435cog_ai.py --direct-ai "query"cog_ai.py --seed-knowledgecog_tui.pycog_tui.py --openai-local-url http://127.0.0.1:11435cog_tui.py --no-openai-localcurl 127.0.0.1:11435/v1/modelscog_chain.py wallet create --name Ncog_chain.py wallet balance --name Ncog_chain.py mine --wallet Ncog_chain.py tx send --from A --to B --amount Ncog_chain.py contract deploy ...cog_chain.py infocog_chain.py explore block Ncog_sync.py encrypt IN OUT -p KEYcog_sync.py decrypt IN OUT -p KEYcog_sync.py export BUNDLE DIR -p KEYcog_sync.py import IN -o OUT -p KEYcog_sync.py diff A.cog B.cogcog_sync.py merge A B OUTcog_sync.py serve BUNDLE --port Ncog_sync.py pull HOST:PORT OUTcog_enterprise.py doc create ...cog_enterprise.py audit log ...cog_enterprise.py workflow create ...cog_enterprise.py incident create ...cog_enterprise.py secret store ...cog_enterprise.py classify scan ...cog_enterprise.py kb create ...cog_enterprise.py report summarycog_pqc.py keygen --security Ncog_pqc.py encrypt --pubkey K ...cog_pqc.py decrypt --privkey K ...cog_pqc.py sign --privkey K ...cog_pqc.py verify --pubkey K ...cog_pqc.py kem-keygen ...cog_pqc.py cert-create ...cog_pqc.py benchmarkcogc.py run FILE.cogscogc.py vm FILE.cogscogc.py hash FILE.cogscogc.py ast FILE --out F.dotcogc.py ast-json FILE.cogscogc.py tokens FILE.cogscogc.py disasm FILE --dot F.dotcogc.py run FILE --max-steps N