frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•9mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•9mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•9mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Show HN: Codey – Keep a time‑aligned log of CLI agent inputs and Git commits

https://github.com/joway/codey
1•joway•1m ago•0 comments

Tesla scraps models in pivot to AI as annual revenue falls for first time

https://www.ft.com/content/78d53ce6-a731-496c-8d8b-e53bc35f49a8
1•1vuio0pswjnm7•1m ago•0 comments

Tech workers continue to lose jobs in droves as economy shows positive signs

https://www.washingtonpost.com/technology/2026/01/31/tech-layoffs-workers-impact/
1•1vuio0pswjnm7•4m ago•0 comments

Show HN: Everything Is Remixed – Serverless Web Audio Mixer with URL State

https://evr.ichbinsoftware.com/
1•ichbinsoftware•6m ago•1 comments

The Moltbook Skill

https://www.moltbook.com/skill.md
1•mooreds•8m ago•0 comments

Think DSP 2 – An Introduction to Digital Signal Processing in Python

https://allendowney.github.io/ThinkDSP2/index.html
1•simonpure•13m ago•0 comments

We Are the Art – Brandon Sanderson's Keynote Speech [video]

https://www.youtube.com/watch?v=mb3uK-_QkOo
1•mangomuffin•13m ago•1 comments

Show HN: Open-Source Bento.me Alternative

https://blento.app/
1•flo-bit•13m ago•0 comments

It's 2026. Can LLMs Play Nethack Yet?

https://kenforthewin.github.io/blog/posts/nethack-agent/
1•kenforthewin•14m ago•0 comments

Jscipy now available on Maven Central

https://central.sonatype.com/artifact/io.github.hissain/jscipy
1•hissain•15m ago•1 comments

Ask HN: Best device for reading and light writing?

1•vitaelabitur•15m ago•0 comments

How I Stopped Babysitting Claude Code (and Started Walking Away)

https://xr0am.substack.com/p/how-i-stopped-babysitting-claude
1•xR0am•16m ago•0 comments

Figuring out a core product to sell

1•dewasiskun_•17m ago•0 comments

Automating Myself Out of My Job – Part 1

https://blog.dsa.club/automation-series/automating-myself-out-of-my-job-part-1/
1•funnyfoobar•20m ago•0 comments

Flying Around the World in under 80 Days

http://pinchito.local/2026/avis-lxxx
1•alexfernandez•22m ago•1 comments

Adventure Game Studio: OSS software for creating adventure games

https://www.adventuregamestudio.co.uk/
1•doener•22m ago•1 comments

OpenClaw on Digital Ocean

https://www.digitalocean.com/blog/moltbot-on-digitalocean
3•gregorymichael•22m ago•0 comments

Ashby taught us we have to fight fire with fire

https://surfingcomplexity.blog/2026/01/31/ashby-taught-us-we-have-to-fight-fire-with-fire/
2•azhenley•26m ago•0 comments

How to Build a Coding Agent

https://github.com/ghuntley/how-to-build-a-coding-agent
2•ghuntley•26m ago•0 comments

Show HN: SROS Self-Compiler (OSS) – a chat-first compiler to XML build packages

https://github.com/skrikx/SROS-Self-Compiler-Chat-OSS
1•skrikx1•27m ago•0 comments

Zuckerman – minimalist personal AI agent that self-edits its own code and grows

https://github.com/zuckermanai/zuckerman
2•ddaniel10•29m ago•2 comments

Forget Extinct: The Brontosaurus Never Even Existed (2012)

https://www.npr.org/2012/12/09/166665795/forget-extinct-the-brontosaurus-never-even-existed
1•thunderbong•29m ago•0 comments

Molt Road – Silk Road for Agents

https://moltroad.com/
3•baby-yoda•29m ago•0 comments

Building a "Cursor for work" (not coding) – anyone interested?

1•moma•30m ago•0 comments

Ingress Nginx: Statement from the Kubernetes Steering and Security Committees

https://kubernetes.io/blog/2026/01/29/ingress-nginx-statement/
1•zbentley•31m ago•0 comments

Claude Code Tips from Boris, the Creator of Claude Code

https://twitter.com/bcherny/status/2017742741636321619
1•kwar13•33m ago•0 comments

Retrieve and rerank: personalized search without leaving Postgres

https://www.paradedb.com/blog/personalized-search-in-postgresql
1•softwaredoug•34m ago•0 comments

What's so great about Rust?

https://bitfieldconsulting.com/posts/why-rust
1•emschwartz•35m ago•0 comments

Crustaceans at the Gate

https://ber.earth/posts/crustaceans.html
1•bergutman•36m ago•0 comments

I trained a model to 'unslop' AI prose

https://old.reddit.com/r/LocalLLaMA/comments/1qd88v2/i_trained_a_model_to_unslop_ai_prose/
1•virgildotcodes•38m ago•0 comments