https://github.com/keep-starknet-strange/agentstark
Giza agents run provable ML models and act autonomously on Starknet using native Account Abstraction
https://github.com/keep-starknet-strange/agentstark
cairo starknet zkml
Last synced: 4 months ago
JSON representation
Giza agents run provable ML models and act autonomously on Starknet using native Account Abstraction
- Host: GitHub
- URL: https://github.com/keep-starknet-strange/agentstark
- Owner: keep-starknet-strange
- License: mit
- Created: 2024-04-17T09:36:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T21:52:24.000Z (almost 2 years ago)
- Last Synced: 2025-07-01T12:02:37.040Z (12 months ago)
- Topics: cairo, starknet, zkml
- Language: Cairo
- Homepage:
- Size: 976 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Agent STARK

[](https://github.com/keep-starknet-strange)
AgentSTARK is an AI agent framework designed for [Starknet](https://www.starknet.io/en). It uses the [Account Abstraction](https://www.starknet.io/en/content/account-abstraction) and will be used with Giza's [AI Agents](https://docs.gizatech.xyz/products/ai-agents) to operate verifiable machine learning models and enable autonomous actions on Starknet.
# How does it work?

### Build the contract
Use `scarb build` to build the contract. You will need both the `sierra` and `casm` files to
declare and deploy the account contract.
### Deploy and fund your account
The Starknet JS deployment script [TODO] will return the transaction hash and the contract address. Send some Sepolia ETH to the account, the easiest way is to send it from any Argent
or Braavos wallet. You will need that address to add the account to `sncast`.
### Add your account to sncast
`sncast --url "https://rpc.nethermind.io/sepolia-juno/?apikey=YOUR_API_KEY" account add --name agent --address your_contract_address --type oz --private-key 0x111111111111`
### Calling the verifier
`cd scripts`
Run the bash script with the verifier address and the calldata file generated from the
[Integrity repo](https://github.com/HerodotusDev/integrity/tree/main?tab=readme-ov-file#starknet-proof-verification).
`./1-verify-proof.sh 0x274d8165a19590bdeaa94d1dd427e2034462d7611754ab3e15714a908c60df7 calldata`
Once the transaction is processed, the emitted event `FactRegistered()` returns the hash of the
fact. Plug it into the the first call of the `multicall.toml` file to ensure checking the valid fact. Add the other calls the agent needs to execute `multicall.toml`.
TODO: connect the emitted event with the fact validity check.
Run `./2-check-fact-and-execute-calls.sh`