crewai-companystack
CrewAI tools for the CompanyStack API. Agents in a crew can search UK companies by name and read a company's register profile, officers and persons with significant control (PSC).
CompanyStack's data is a copy of public registers, mainly the Companies House register. It may be incomplete or out of date. Check anything important against the company's entry at Companies House. CompanyStack is not affiliated with or endorsed by Companies House. Contains public sector information licensed under the Open Government Licence v3.0.
Install
pip install -U crewai-companystack
API key
Create an account at https://companystack.co.uk/signup to get a free API key, then set it:
export COMPANYSTACK_API_KEY="cs_your_key"
Or pass it to each tool: CompanyStackCompanyTool(api_key="cs_your_key").
Tools
| Tool | API call | Plans |
|---|---|---|
CompanyStackSearchTool |
GET /company/search |
Free (first 10 results) and above |
CompanyStackCompanyTool |
GET /company/{number} |
Free and above |
CompanyStackOfficersTool |
GET /officers/company/{number} |
Starter and above, or pay-as-you-go credits |
CompanyStackPSCTool |
GET /psc/company/{number} |
Starter and above, or pay-as-you-go credits |
Each tool returns the API's JSON as a string. If a call fails, the tool returns a message starting Error: that says what to do, for example the upgrade link when a call is not on the key's plan, or where to get a free key when none is set.
Use
from crewai_companystack import CompanyStackCompanyTool, CompanyStackSearchTool
print(CompanyStackSearchTool().run(query="tesco", limit=3))
print(CompanyStackCompanyTool().run(company_number="00445790"))
In a crew:
from crewai import Agent, Crew, Task
from crewai_companystack import companystack_tools
researcher = Agent(
role="Company researcher",
goal="Answer questions about UK companies from the register",
backstory="You check UK companies before the business trades with them.",
tools=companystack_tools(),
)
task = Task(
description="Find Tesco PLC and say when its next accounts are due.",
expected_output="The company number and the next accounts due date.",
agent=researcher,
)
print(Crew(agents=[researcher], tasks=[task]).kickoff())
The crew example also needs a model configured for CrewAI (for example OPENAI_API_KEY).
Plans and limits
From https://companystack.co.uk/llms.txt, where current prices and limits are kept:
- Free: £0. 1,000 requests a day, 30 a minute. Search companies (top 10 results) and pull a full company profile by number.
- Starter: £29/month or £288/year. 10,000 requests a day, 60 a minute. Adds officers, owners (PSC) and filing history, among other things.
- Pay as you go: prepaid credits, from £10 for 1,000 credits, for calls your plan does not include. A standard lookup costs 1 credit.
Full details: https://companystack.co.uk/pricing?product=api.
Development
pip install -e ".[test]"
pytest
The tests use a mocked HTTP transport and make no network calls.
Licence
MIT. See LICENSE.
Metadata
Release files for crewai-companystack 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crewai_companystack-0.1.0.tar.gz | 8.4 kB | With provenance | Details for crewai_companystack-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crewai_companystack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for crewai_companystack-0.1.0-py3-none-any.whl |
Total release size: 17.3 kB
Release files / crewai_companystack-0.1.0.tar.gz
| Download URL | crewai_companystack-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c8ad17d255dd83af874e335ab75f320583a5a0d1df39d6e397cfe6cf8fec0ef
|
|
BLAKE2b-256 checksum How to use checksums |
ebf4c5b8caeee99dec7b9b2c4eec146fc3f297e9810f6c4544125bdb27167cf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / crewai_companystack-0.1.0-py3-none-any.whl
| Download URL | crewai_companystack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfe148cbd0c7261fdedf8d23a0b3186ddcc1d3367b2e4b4253f0704a75688f7c
|
|
BLAKE2b-256 checksum How to use checksums |
e84a3fc9212fa013d591e66caf69afc19924a694d2a19b226c02f94bd2ae7430
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for crewai-companystack 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for crewai_companystack-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.